• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc connection error!!!!  RSS feed

 
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
Sheriff
Posts: 24216
37
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.)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!