Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing JDBC Driver in *.jar file

Status
Not open for further replies.

chuq2001

Programmer
Jul 15, 2002
24
US
I'm having trouble accessing a AS400 database using a servlet. Whenever I add code to the servlet to access the DB I get an exception;
server error page:NullPointerException
dos prompt: java.sql.SQLException: No suitable Driver

I think I need to get Tomcat to find the jt400.jar file with the driver in it, but can't. Can anyone help.

Thanks
Chuck T.
 
If you have access to the machine, modify it's CLASSPATH environment variable to point directly to the jt400.jar file, and then it should all be happy.

If you don't have access to change the CLASSPATH, you have the same problem I have, and I'm still trying to figure it out!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top