File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc connection error!!!!

 
pradeep arum
Ranch Hand
Posts: 130
  • 0
  • 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: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • 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