Thomas Bentsen wrote:
Hi again...This is because you have set the CLASSPATH to point to the JDBC driver when compiling the code (which is why the import works). However, when you run the code you do not have the same CLASSPATH set and therefore you get the ClassNotFoundException.
I wrote some days ago about my problems with JDBC.
OS = WinXP
Java = 1.4.1_01
CLASSPATH=C:\lang\sapdbc.jar
When I try to compile:
Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
I get:
java.lang.ClassNotFoundException
Strangely enough I am able to import the lib, like:
import com.sap.dbtech.jdbc.*;
(I use JDeveloper and DBVisualizer as well - and they manage to get in touch with my test-db through JDBC)
What am I doing wrong??!
Could it be the OS? -or the new JDK?
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general
