Subject | Jdbc Problems |
---|---|
Author | Guilherme Iplan |
Post date | 2002-12-13T18:25:18Z |
Hi,
I write this code for driver test:
import java.sql.*;
public class TestFire
{
public static void main(String a[])
{
try
{
Class.forName("org.firebirdsql.jdbc.FBDriver");
Connection conn = DriverManager.getConnection("jdbc:firebirdsql:localhost/3050:c:\\dbteste.gdb", "sysdba", "masterkey");
System.out.println("ok");
}catch(Exception e)
{
System.out.println(e);
}
}
}
but since execute this error message is printed:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/Resour
ceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at TesteFire.main(TesteFire.java:8)
Why is that?
Guilherme
Busca Yahoo!
O melhor lugar para encontrar tudo o que vocĂȘ procura na Internet