Dear Tinus...
It still doesn't work.
Here is my last try:
"
sag@susefujitsu:~/arsip> java -classpath
".:/usr/sag/arsip/adabasd.jar" konek
Exception in thread "main"
java.lang.NoClassDefFoundError:
com/softwareag/common/instrumentation/logging/LoggerFactory
at
de.sag.jdbc.adabasd.ADriver.<clinit>(ADriver.java:423)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at konek.main(konek.java:8)
sag@susefujitsu:~/arsip>
"
And here is my code:
"
import java.sql.*;
public class konek
{
public static void main(String[] args)
{
try {
Class.forName("de.sag.jdbc.adabasd.ADriver");
} catch (ClassNotFoundException e){
System.out.println("JDBC driver for Adabas D not
found");
e.printStackTrace();
}
try {
java.sql.Connection con =
java.sql.DriverManager.getConnection("jdbc:adabasd://127.0.0.1/MYDB",
"control", "adabas");
} catch (java.sql.SQLException e) {
System.out.println("Error " + e.getErrorCode() + "
" + e.getMessage());
e.printStackTrace();
}
}
}
"
What should I do now? Please tell me...
--- Martijn Houtman
Oh, right, in windows it might be the character ; instead of :, not sure. Try using " around the classpath as well.
Regards, -- tinus ___________________________________________________ "Words are weightless here on earth Because they're free." -- Josh Homme
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com