I am trying to connect to Derby Database, the input is given throught the html page , after clicking submit, i get the error message "Couldn't Load Database Driver".
the connection statements i used are here: Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
connection = DriverManager.getConnection("jdbc:derby:C:\\DerbyDatabases\\MyDB;create=true");
Do you have the required jar file for derby database on your classpath?
Joined: May 25, 2011
Hi, i added the jar and it is working fine now. I am trying to create the table using servlet, first time when i run the application it is getting created. But when i run the "script.sql" it says "Table does not exists". What could be the error?? Is the table getting created somewhere else?? If so how will i find that??
Here is my code for your reference: