You should add the the follwing jar file in class path "derby.jar" and "derbtools.jar"
and then you should try this
try {
String driver = “org.apache.derby.jdbc.EmbeddedDriver”;
Class.forName(driver).newInstance();
Connection conn = null;
conn = DriverManager.getConnection(“jdbc:derby

erbyTestD B”);
}
I hope this piece of code will work fine. Best of luck