This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198357 - embedded Derby looks for databases on .netbeans.derby instead of .netbeans-derby
Summary: embedded Derby looks for databases on .netbeans.derby instead of .netbeans-derby
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Derby (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 16:58 UTC by liveforever
Modified: 2011-11-16 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java DB Properties (14.14 KB, image/png)
2011-05-13 13:39 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liveforever 2011-05-05 16:58:09 UTC
Ive created a Derby DB via  "jdbc:derby:mydatabase;create=true" instruction with the derby embedded driver and the 
database directoory has been created in the \USERDIR\.netbeans\7.0\derby\mydatabase directory.

But when the databases are created by the netbeans frame wizards or when you try to open a DB from the services label,
it is searched in the \USERDIR\.netbeans-derby\mydatabase (with hyphen before the derby word) so the connection fails.

Please, excuse my english level.

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01
Comment 1 Jiri Rechtacek 2011-05-13 13:39:03 UTC
It's intentional, you have to set up new Derby location in Java DB Properties (see the attached image) if you want to use other location than the default one on \USERDIR\.netbeans-derby
Comment 2 Jiri Rechtacek 2011-05-13 13:39:46 UTC
Created attachment 108272 [details]
Java DB Properties