File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

oracle.sql.* and oracle.jdbc.driver.*

 
Jyothsna Sri Y
Ranch Hand
Posts: 35
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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