File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes What is wrong with my env. setting? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "What is wrong with my env. setting?" Watch "What is wrong with my env. setting?" New topic
Author

What is wrong with my env. setting?

gshu
Greenhorn

Joined: Jan 25, 2002
Posts: 5
I have write a connection pool and a DB manager with JDBC. I run them without any problem in loading from and storing into Oracle DB in VisualAge for Java WebSphere Test Environment. But when I deployed my code into Tomcat3.3, the DBManager can not find a driver in "Class.forName(oracle.jdbc.driver.OracleDriver)". I have set my classpath in in "Control Panel/System/Advanced/Environrmental Variables" in Windows 2000. The Exception caught at "Class.forName(oracle.jdbc.driver.OracleDriver)" is ClassNotFoundException.
What is wrong with my environment setting? Can any one help me? Thanks
gshu
Greenhorn

Joined: Jan 25, 2002
Posts: 5
The classpath I added is "D:\Oracle\Ora81\jdbc\lib\classes111.zip"
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"gshu",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please re-register and select a new name which meets the requirements.
Thanks.
Dave
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Common problem in Tomcat!
I've written a reply to the same problem here, if you need any more info, drop us a line.
Dave.
gshu
Greenhorn

Joined: Jan 25, 2002
Posts: 5
Thanks all guy. Yes I have got it by renaming the classes111.zip into classes111.jar!
Thanks all again!
I will change my name into the qualified one next time!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is wrong with my env. setting?