pramod talekar wrote:I read that for Derby, user name is app and password is not needed. Is it right?
I don't know. But that's irrelevant to this problem; the error message appears because this line of code throws an exception:
In other words, that class can't be loaded.
Now I know you're going to say it's in your classpath and all that, but let me just point out that class names can't include quote characters. In fact you seem to have written your whole properties file as if you thought that properties files were some kind of Java code. They aren't. In particular that line of Java code where you tried to declare the jdbc.url property isn't going to work the way you thought it would.
I just found out that the related jar derby.jar doesn't contain ClientDriver class !!!
It contains EmbeddedDriver among other classes.
I rechecked my classpath, it has %DERBY_HOME%\lib\derby.jar;%DERBY_HOME%\lib; entries among others.
So I replaced ClientDriver with EmbeddedDriver but got the same message.
If you can't load a class which is in a jar you already have, then downloading another copy of the jar isn't going to fix anything. If you can't load a class which is in a jar you already have, that just means that jar isn't in your classpath. Fix that.