Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trouble Creating/Connecting to Derby DB in Eclipse

843859May 26 2010 — edited Nov 20 2014
I'm fairly new to JDBC/Derby and have been trying to [follow this tutorial|http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html#createDB].

Unfortunately, I get this error when I finish the "New Derby Connection Profile":

Could not connect to TestDB.
Error creating SQL Model Connection connection to TestDB. (Error: Failed to create database '...\database', see the next exception for details.)
Failed to create database '...\database', see the next exception for details.
Error creating JDBC Connection connection to TestDB. (Error: Failed to create database '...\database', see the next exception for details.)
Failed to create database '...\database', see the next exception for details.

My "derby.jar" file is in "C:\Program Files\Sun\JavaDB\lib".
I created a "Derby" User Library in Eclipse and added it to my Build Path.
I added "Derby Embedded JDBC Driver" version 10.2 to my Driver Definitions.

I'm probably missing something really obvious since this is my first attempt.
I'd really appreciate any help. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2010
Added on May 26 2010
5 comments
1,256 views