aspose file tools*
The moose likes JDBC and the fly likes I cann't connect the oracle database! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "I cann Watch "I cann New topic
Author

I cann't connect the oracle database!

Yanbing Yu
Greenhorn

Joined: Aug 31, 2003
Posts: 9
I cann't connect the oracle database!
I had wrote the code such as
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@192.168.0.24:1521","siis","siis");
siis is user name and passward.
when i run this program,it shows me that java.lang.ClassNotFoundException racle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run<Unkown Source>
at ............
at ......


java lover
Nagendra Prasad
Ranch Hand

Joined: Jul 11, 2002
Posts: 219
From the information provided in your post, it looks like the program is not able to find the Oracle classes requried for making the connection i.e. the JDBC Drivers..
Are you sure that the jdbc drivers are in your class path at the time of running the application?


Best Regards,<br />Nagendra Prasad.
Yanbing Yu
Greenhorn

Joined: Aug 31, 2003
Posts: 9
Thanks a lot ,Nagendra Prasad.
Today it runs good.
Maybe it's the problem of the network.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I cann't connect the oracle database!