Subject | Problem with connection to the database |
---|---|
Author | ariel_calo |
Post date | 2002-11-01T18:01:26Z |
Hello, my name is Ariel.
I try to load JDBC driver and obtain a connection to the database :
Class.forName("org.firebirdsql.jdbc.FBDriver");
connection=DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:C:\\Program Files\\Firebird/\\examples\\EMPLOYEE.GDB", "sysdba", "masterkey");
statement=connection.createStatement();
but I hava this exception:
java.lang.NoClassDefFoundError: javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at EnlaceDataBase.<init>(EnlaceDataBase.java:14)
at EnlaceDataBase.main(EnlaceDataBase.java:64)
Exception in thread "main"
Somebody can help me?. Thank you, Ariel.
I try to load JDBC driver and obtain a connection to the database :
Class.forName("org.firebirdsql.jdbc.FBDriver");
connection=DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:C:\\Program Files\\Firebird/\\examples\\EMPLOYEE.GDB", "sysdba", "masterkey");
statement=connection.createStatement();
but I hava this exception:
java.lang.NoClassDefFoundError: javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at EnlaceDataBase.<init>(EnlaceDataBase.java:14)
at EnlaceDataBase.main(EnlaceDataBase.java:64)
Exception in thread "main"
Somebody can help me?. Thank you, Ariel.