Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2008
    Location
    kolkata
    Posts
    21
    Rep Power
    0

    Question connection with Oracle 10g

    I've a problem while connecting java throw jdbc: oracle!:confused:
    While I've written
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    in my program.....I'm having a compilation error........

    TryingJDBC.java:2: package oracle.jdbc.pool does not exist
    import oracle.jdbc.pool.OracleDataSource;

    What should I do now?

    please help me out.
    ..::SC::..

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    Seems that you don't have your classpath set up correctly if it's not finding what you're trying to import. Hope someone else here can be of more help.

  3. #3
    Join Date
    Aug 2008
    Location
    kolkata
    Posts
    21
    Rep Power
    0

    Default

    thanx for your reply...
    no sir I've that yet i've this as a problem.........
    please help me out.....
    ..::SC::..

  4. #4
    Join Date
    Aug 2008
    Location
    kolkata
    Posts
    21
    Rep Power
    0

    Default

    Can anyone tell me how to set the classpath so that I can connect java with oracle..........
    I want to verify my classpath is correct or not........
    plz help me..........
    ..::SC::..

  5. #5
    DevzAbhi's Avatar
    DevzAbhi is offline Member
    Join Date
    Jul 2008
    Posts
    67
    Rep Power
    0

    Default

    plz have ojdbc14.jar

    put it in some folder


    and when you are compiling your prog on command prompt

    write
    set classpath=.;c:\youfolder\ojdbc14.jar

    and than javac your.java file
    DevZ;)

  6. #6
    Join Date
    Aug 2008
    Location
    kolkata
    Posts
    21
    Rep Power
    0

    Default

    Thank you DevzAbhi!!!!!!!!
    I'm very happy now......
    what you told me that really works......
    thanx a lot!!!!
    ..::SC::..

Similar Threads

  1. Replies: 0
    Last Post: 08-27-2008, 10:27 AM
  2. oracle.xml.sql.OracleXMLSQLException
    By madanmohanp in forum JDBC
    Replies: 0
    Last Post: 07-23-2008, 01:39 PM
  3. MS SQL2005 to Oracle DB
    By bmongtangco in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-07-2007, 03:58 AM
  4. in an oracle query
    By bbq in forum JDBC
    Replies: 2
    Last Post: 07-04-2007, 08:53 AM
  5. Oracle Driver
    By softy in forum Advanced Java
    Replies: 0
    Last Post: 06-28-2007, 03:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •