• Post Reply Bookmark Topic Watch Topic
  • New Topic

jdbc connection error!!!!  RSS feed

 
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
 
author and iconoclast
Sheriff
Posts: 24217
38
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.)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!