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 sun.jdbc is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "sun.jdbc is not available" Watch "sun.jdbc is not available" New topic
Author

sun.jdbc is not available

Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
I am trying to execute a SQL query using JDBC. The code is as follows:


I think the code is fine. I get the error saying package sun.jdbc is not available. Can anybody help me with this?

Thanks in advance.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You'll get this if you are not using Sun's compiler, for example if you are using IBM's.
Ram Kas
Ranch Hand

Joined: Jul 26, 2006
Posts: 83
But, I use sun's compiler. Any more inputs?
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170



Shouldn't that be in quotations? Also can we try printing the exceptions instead of ignoring them :shocked:
[ August 07, 2006: Message edited by: Mr. C Lamont Gilbert ]
Lucky Chawla
Greenhorn

Joined: Aug 08, 2006
Posts: 22
You will the classes12 or classes111.jar and you have to unzip this fie and place it in the java directory,This file is in the oracle's directory. After unzipping it you will find the package you are searching for
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sun.jdbc is not available