Results 1 to 2 of 2
Thread: Help setting up JavaDB
- 05-08-2010, 06:14 AM #1
Member
- Join Date
- May 2010
- Posts
- 1
- Rep Power
- 0
Help setting up JavaDB
Hi
I'm trying to set up and use JavaDB with Netbeans. I set up a JavaDBEmbedded library in Netbeans and the small piece of code I have wont run. The current error is
java.sql.SQLException: Database 'TestDB' not found.
I didn't think JavaDB needed much setting up but I've since gone back and read about setting the CLASSPATH and DERBY_HOME variable. What I've read all say to set it temporarily and do it at the command line. I'm not sure how to go about this since I'm using Netbeans. Can anyone offer any advice how to get it up and working??
The code I'm using is..
Thanks :)Java Code:Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); Connection con = DriverManager.getConnection("jdbc:derby:TestDB","user", "password");
- 05-08-2010, 08:34 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
client javadb connection over internet
By OmerHalit in forum JDBCReplies: 15Last Post: 05-26-2010, 11:27 AM -
creating many-many relationships in javadb
By odeno in forum JDBCReplies: 3Last Post: 10-08-2009, 10:27 PM -
load driver in javaDB
By kulangotski in forum New To JavaReplies: 1Last Post: 02-20-2009, 07:15 PM -
JavaDB Help
By Sysem in forum New To JavaReplies: 5Last Post: 05-29-2008, 09:21 PM -
JavaDB Installation
By PhilArmstrong in forum New To JavaReplies: 6Last Post: 05-13-2008, 02:09 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks