It's not a secret anymore!
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
Author

Problem in importing oracle.sql.*

sai Narayan
Greenhorn

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
thanks
[ October 13, 2004: Message edited by: sai Narayan ]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

Sai,
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

classes12.zip is not in your class path.

add the classes12.zip in your classpth


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

Joined: Aug 16, 2004
Posts: 21
thank you very much my code is compiling.
 
Have you checked out Aspose?
 
subject: Problem in importing oracle.sql.*
 
It's not a secret anymore!