What could be wrong? I already have C:\...\lib\hsqldb.jar added to my CLASSPATH.
Please help!
And Green
Greenhorn
Joined: Sep 28, 2007
Posts: 26
posted
0
Try adding C:.; to the classpath.
Tarek Khojah
Ranch Hand
Joined: Jul 21, 2007
Posts: 58
posted
0
Just to be sure, when you say classpath, you mean (in Windows) to right click on "My Computer", go to "Advanced" and so on. And not just something to do in the command prompt, correct?
If it's the first case, I did that, still have the same problem.
Do the drivers or folders or compiled code or whatever have to be in certain directories/folders?
I don't understand how forName() works, it takes org.hsqldb.jdbcDriver as a String to instantiate an object, but is that a URL or something? How does the compiler know where to look for this "org.hsqldb.jdbcDriver"?
Tarek Khojah
Ranch Hand
Joined: Jul 21, 2007
Posts: 58
posted
0
Ah, found a solution, turns out I need to add the .jar file to my library in my IDE.