• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is wrong with my env. setting?

 
gshu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classpath I added is "D:\Oracle\Ora81\jdbc\lib\classes111.zip"
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic