Skip to main content

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

well I think COM is the right one.
When I replace COM with com, the error is:
detailMessage= "com/ibm/db2/jdbc/app/DB2Driver (wrong name: COM/ibm/db2/jdbc/app/DB2Driver)"

I examined my jar file, it has the path as COM/ibm/db2/jdbc/app/DB2Driver

Thanks a lot...
ahu
-----Original Message-----
From: Alexandru Balut [mailto:aleb@xxxxxxxxxx]
Sent: Thursday, August 08, 2002 3:19 PM
To: Ahu Eryuruk (Garanti Teknoloji)
Subject: [eclipse-dev] Re[2]: connectiong to db2


Hello Ahu,

Thursday, August 8, 2002, 3:10:31 PM, you wrote:

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

  Try with "com", not "COM"..

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

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


-- 
Best regards,
 Alexandru                            mailto:aleb@xxxxxxxxxx

_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev


Back to the top