| Author |
ClassNotFoundException while loading the JDBC driver for HSQLDB
|
Pavan Kumar Dittakavi
Ranch Hand
Joined: Feb 12, 2011
Posts: 95
|
|
hi All,
I have downloaded the HSQLDB and have created a sample table in it. I have been following the link for the same. Im unable to load the driver using the Class.forName method. It basically complains of the following message. Im relatively new to JDBC please suggest what I might be missing here.
Thanks,
Pavan.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
You missed setting your classpath. In particular it has to include the jar which contains the JDBC driver.
|
 |
Pavan Kumar Dittakavi
Ranch Hand
Joined: Feb 12, 2011
Posts: 95
|
|
Hi Paul,
I have already set the class path to the directory that contains the jar file you mentioned. It still is throwing me this error. Am I missing something here.
Thanks.,
Pavan.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Don't include the folder with the JAR file to your class path, add the JAR file itself.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: ClassNotFoundException while loading the JDBC driver for HSQLDB
|
|
|