Subject | Problems with loading driver |
---|---|
Author | Christian Flaig |
Post date | 2002-05-23T09:03:41Z |
Hi,
i have a basic problem here with loading the Firebirdsql jdbc driver.
When i try to load the driver, i get an error. Driver file is in classpath.
Here's the error:
E:\Develop\Firebird\build\WEB-INF\classes>java -classpath
.;e:\develop\Firebird\lib\firebirdsql.jar test
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at test.main(test.java:9)
Source Code is:
import java.sql.*;
//import org.firebirdsql.jdbc.*;
public class test {
public static void main(String[] args) {
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
JDK is 1.4.0.
Can anybody help?
Thanks in advance!
Christian
i have a basic problem here with loading the Firebirdsql jdbc driver.
When i try to load the driver, i get an error. Driver file is in classpath.
Here's the error:
E:\Develop\Firebird\build\WEB-INF\classes>java -classpath
.;e:\develop\Firebird\lib\firebirdsql.jar test
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at test.main(test.java:9)
Source Code is:
import java.sql.*;
//import org.firebirdsql.jdbc.*;
public class test {
public static void main(String[] args) {
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
JDK is 1.4.0.
Can anybody help?
Thanks in advance!
Christian