File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes jdbc connection error!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "jdbc connection error!!!!" Watch "jdbc connection error!!!!" New topic
Author

jdbc connection error!!!!

pradeep arum
Ranch Hand

Joined: Oct 01, 2003
Posts: 130
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


SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24054
    
  13

Well, presumably you've not got the Oracle driver JAR file on your CLASSPATH (or not installed properly in your application server.)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc connection error!!!!
 
Similar Threads
Can not get connection from the Connection Pool
Classes12.zip Thin Drivers
oracle database problems
connection with oracle using jdbc driver
JDBC- ORACLE