Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
    Bookmark Topic Watch Topic
  • New Topic

oracle.sql.* and oracle.jdbc.driver.*  RSS feed

 
Jyothsna Sri Y
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Everyone
I have the following two statements in my code,
import oracle.jdbc.driver.*;
import oracle.sql.*;
When i try to compile the code it gives me the following error messages,
picloader.java:13: package oracle.jdbc.driver does no
import oracle.jdbc.driver.*;
^
picloader.java:14: package oracle.sql does not exist
import oracle.sql.*;
Can somebody tell me how to solve this problem..
this is very very urgent...
Thank You
Jyothsna
[ November 25, 2003: Message edited by: Bear Bibeault ]
 
Joe Ess
Bartender
Posts: 9414
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
In the Oracle Java Developer's Guide, it says you must include the classes12.zip file in your classpath.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Report post to moderator
from the oracle JDBC docs:
"Your code should use the package oracle.jdbc instead of the package oracle.jdbc.driver used in earlier versions of Oracle. Use of the package oracle.jdbc.driver is now deprecated, but will continue to be supported for backwards compatibility."
Jamie
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Report post to moderator
never mind my post, its not the problem ( the whole backwards compatiblility part! ). Anyways, which driver are you using ( in your classpath ) ? If you are using the classes12.zip or higher thin driver, then your code should work fine unless you've got a classpath problem as stated above.
Jamie
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closed on author's request.
bear
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!