Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 31014 invoked from network); 12 Aug 2010 10:12:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 10:12:48 -0000 Received: (qmail 11849 invoked by uid 500); 12 Aug 2010 10:12:48 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 11380 invoked by uid 500); 12 Aug 2010 10:12:45 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 11371 invoked by uid 99); 12 Aug 2010 10:12:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 10:12:44 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 10:12:39 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OjUlm-0007aG-Nn for derby-user@db.apache.org; Thu, 12 Aug 2010 03:12:18 -0700 Message-ID: <29415496.post@talk.nabble.com> Date: Thu, 12 Aug 2010 03:12:18 -0700 (PDT) From: darie17 To: derby-user@db.apache.org Subject: Failed to create database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: darie20@yahoo.com Hello, I'm using Derby as an embedded DB in my Java app. Well, everything works fine when running the application from my IDE (Netbeans 6.9, jdk1.6.0_21, Windows 7 Pro 64 Bit). I can create tables, read data out of them etc. But: when I deploy my application (i.e. create an installation package containing the app and other resources) and install it like any other application, I always get the following exception when the program tries to initiate the DB: Failed to create database 'C:\Program Files\MyApp\myDB', see the next exception for details. myDB is be the folder where Derby should store its files for my app. After long debugging sessions :) I noticed something: if I install the application anywhere else than in Program Files, it works perfectly. That is why I think its rather a write access problem. Please notice we are talking about Windows 7. And the question is: how can I solve it? Thanks! -- View this message in context: http://old.nabble.com/Failed-to-create-database-tp29415496p29415496.html Sent from the Apache Derby Users mailing list archive at Nabble.com.