wood burning stoves 2.0*
The moose likes JDBC 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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in importing oracle.sql.*
 
Similar Threads
Error Compiling Maven Project
oracle.sql.* and oracle.jdbc.driver.*
Compiling Client
JDBC Connection
Package oracle.sql does not exist