Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with classpath :(

 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends here i m again with problem this time it's with
CLASSPATH im using an thin driver for oracle so my registration is in following fashon
Class.forName("oracle.jdbc.drive.OracleDriver");
but i m gettin run time exception cannot find class OracleDriver.class well i have confirmed my class file is in
/usr/local/oracle/jdbc/driver/OracleDrive.class
so i have set classpath as follows
CLASSPATH=$CLASSPATH:/usr/local
and i also tried with CLASSPATH=/usr/local
but it;s not working and i have linux7.0
so plzzzzzzzzzzzz help me on this
..praful
 
Michael Burke
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try export CLASSPATH.
 
Praful Thakare
Ranch Hand
Posts: 642
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Michael Burke
 
Michael Burke
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your welcome, I guess it worked? I'm new to Linux myself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic