Take the 2-minute tour ×

I'm getting the following error when I try to run a Java class which interacts with Java DB.

I try loading driver with :


In libraries, "derby.jar" do exist. I'm using NetBeans IDE 6.0.

Could anyone help me to solve this problem?

share|improve this question
You should add the error message. –  tangens Nov 8 '09 at 9:08
Always provide stack trace when reporting an error! –  Thorbjørn Ravn Andersen Nov 8 '09 at 10:46
add comment

2 Answers

Make sure you added derby.jar to the classpath.

share|improve this answer
add comment

First, open the jar (with winrar or similar app) to make sure that the class is actually there, under the correct path !

If it is, then, my friend, you have a classpath issue - add the jar location to the project's classpath - usually you can see the classpath used where running the program in the log/ouput pane so you can make sure it's included.

Good luck ! Danny

share|improve this answer
add comment

Your Answer


