Attempting to connect to a DB2 database using servlets
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, April 4, 2003 06:39 AM

I am attempting to connect to a DB2 database. I am unsure of how to install the driver to allow me to do this. I have a Linux Machine running DB2 locally.
Any body know how to do this?




Thanks



John

Re: Attempting to connect to a DB2 database using servlets

Posted By:   Anonymous  
Posted On:   Friday, April 4, 2003 09:34 AM

A little extra info.



I'm running DB2 V7.1 on Redhat 8.0.

The IDE I'm using is JBuilder 6.



When I run a simple connection program ( href="http://www.daimi.au.dk/%7Edbuser/db2hs/java/toolsj.htm">view program
from authors page) in JBuilder I get the following error:



java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path

    at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:245)

    at java.lang.Class.newInstance0(Native Method)

    at java.lang.Class.newInstance(Class.java:237)

    at databaseconnect.Tools.(Tools.java:31)

Exception in thread "main" java.lang.NoSuchMethodError: main




Any help anyone could give me is greatly appreciated.

Thanks!
About | Sitemap | Contact