File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Problem in importing oracle.sql.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Problem in importing oracle.sql.* " Watch "Problem in importing oracle.sql.* " New topic

Problem in importing oracle.sql.*

sai Narayan

Joined: Aug 16, 2004
Posts: 21
hi friends ,
my code has:-
import oracle.sql.*;
import oracle.jdbc.*;

for which i am getting the following errors:-
package oracle.sql does not exist

package oracle.jdbc does not exist

pleas help
[ October 13, 2004: Message edited by: sai Narayan ]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33113

Why are you using oracle specific packages over pure JDBC?

As for the actual problem, are the Oracle jars for those packages in the classpath?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1082 is not in your class path.

add the in your classpth

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
sai Narayan

Joined: Aug 16, 2004
Posts: 21
thank you very much my code is compiling.
I agree. Here's the link:
subject: Problem in importing oracle.sql.*
It's not a secret anymore!