Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
In the Oracle Java Developer's Guide, it says you must include the classes12.zip file in your classpath.
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closed on author's request.
bear
 
    Bookmark Topic Watch Topic
  • New Topic