jdbc odbc driver ClassNotFoundException
I use the Visual Interdev J++ IDE and when I run ...
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
I get. ...
java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver
only when using the the J++ IDE. But I don't get an error when I run the code with the java.exe . I noticed that J++ uses jview.exe. I don't understand.
Eric
[372 byte] By [
jepattes] at [2007-9-30 20:45:32]

MS VJ++ doesn't look at the %CLASSPATH% environment variable like most other JVMs and compilers do, it uses it's own, internal settings, and settings stored in the registry
glrao at 2007-7-7 1:34:22 >

MS VJ++ doesn't look at the %CLASSPATH% environment variable like most other JVMs and compilers do, it uses it's own, internal settings, and settings stored in the registry.
Try this once:
In the VJ++ Project Properties window, under the Classpath tab, you need to add these entries
\jdk1.2.2\jre\lib\rt.jar
\jdk1.2.2\lib\tools.jar
Add the aboave jars according to your jdk version.
glrao at 2007-7-7 1:34:22 >
