aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes HOW to connect to DB2 from J2EE in the J2EE and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HOW to connect to DB2 from J2EE in the J2EE and EJB" Watch "HOW to connect to DB2 from J2EE in the J2EE and EJB" New topic
Author

HOW to connect to DB2 from J2EE in the J2EE and EJB

stephen chan
Greenhorn

Joined: May 03, 2001
Posts: 6
hi,
My server is J2EE1.3
My DB is DB2
when i unzip the db2java.zip file to a directory, let say "temp"
after i set the classpath and j2ee_classpath to the directory.
there is still an error which says "COM/ibm/db2/jdbc/app/db2java.zip" not found
would you help me
thx
stephen chan
Philip Nour
Greenhorn

Joined: Jun 02, 2001
Posts: 10
Hi,
this might be late but better than nothing..:-)
COM/ibm/db2/jdbc/app/db2java.zip is not the name of the driver class, if you already unziped the file replace the last section of the name with DB2Driver.class, db2java.zip in this context does not mean anything...
The best way to do this is to include the db2java.zip in the J2EE_CLASSPATH with no need to unzip it....
i.e. db2java.zip is the file containing the driver, and it should be in your J2EE_CLASSPATH, zippped or not. COM/ibm/db2/jdbc/app/DB2Driver.class is the fully qualified driver class name and it is what is being looked for within the db2java.zip file....
Philip

Philip
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HOW to connect to DB2 from J2EE in the J2EE and EJB