This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc connection error!!!!

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,
I am an SCJP AND NEW TO JAVA DATABASE CONNECTIVITY ,I have a problem in connecting to oracle 9i,
these are the connection statements i used
Class.forName("oracle.jdbc.driver.OracleDriver");
String user=null,pass=null;

user="scott";
pass="tiger";

Connection conn=DriverManager.getConnection ("jdbc racle:thin:@oracle:1521:acdb",user,pass);

And the error is java.lang.classnotfound exception..
please help
thanks
pradeep
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, presumably you've not got the Oracle driver JAR file on your CLASSPATH (or not installed properly in your application server.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic