Hi Glen,
If you are using the Embedded mode, please check the Java system property "derby.system.home" (on command line -Dderby.system.home).
That should point to the same directory, where the databases were created. You can set this property like any other Java system properties using the
'-D' option.
In case of network server you can use this same option while starting:
java -Dderby.system.home=c:\temp org.apache.derby.drda.NetworkServerControl start
in case of the above example, all the databases created will be residing under 'c:\temp.'
Send a mail to the list, should you come across any issues.
-Rajesh
Glen Miller wrote:
Hi Rajesh,
Thank you for responding. I am running the db in embedded mode. No SQL states are returned. I tried setting it up inside the network server frame and got the same result "not found". SQL states were returned but I don't remember them. I switched to the eclipse ide and am having better luck there. But for me I think netbeans is more user friendly. I just can't afford to waste any more time with it. I like the Derby/Cloudscape database so far. It is so small and portable to other os.
Glen
----- Original Message ----- From: "Rajesh Kartha" <[EMAIL PROTECTED]>
To: "Derby Discussion" <[email protected]>
Sent: Tuesday, January 25, 2005 6:09 PM
Subject: Re: Cannot connect netbeans 4.0 to derby db
Hi Glen,
I presume, you must using the same Derby Network Server (default: host - localhost, port - 1527), in both cases (your java app and NetBeans).
Are there any error messages duirng connection, while running your app in NetBeans ? Any SQLStates ?
-Rajesh
Glen Miller wrote:
Hi,
I'm writing a db app in java using Derby. My java app connects to derby just fine. When I try to connect to my db from netbeans 4.0 it does not find my database or any of the sample databases. Any ideas?
Glen
