Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipse-dev] connectiong to db2

Hi Ricardo,
I was using the following code:
        Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
        String url = "jdbc:db2:" + dbname;
        con = DriverManager.getConnection(url, user, password);
I changed the first line as :
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();

Now I receive: "java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path"

I added -Djava.library.path=c:/sqllib/bin*db2jdbc.dll as JVM parameter in the preferences,Tomcat/JVM Settings.
The result is the same.....
Ahu


Back to the top