• Post Reply 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

compiling under JBuilder

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I'm working with JBuilder and i'm trying to execute the following action:
......
import java.sql.*;
.......
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
.........
The compiler does not agree and says:
"Connexion.java" : Erreur No. 302 : classe oracle.jdbc.driver.OracleDriver non accessible ; aucune classe ni source trouv� pour oracle.jdbc.driver.OracleDriver en ligne 17, colonne 66
which means as you guesses class oracle.jdbc.driver.OracleDriver not found
I set the good values to the classpath which are [ORACLE_HOME]\jdbc\lib\classes111.zip, [ORACLE_HOME]\jdbc\lib\nls_charset11.zip and the value ORACLE_HOME]\jdbc\lib to my path.
But it still doesn' t work.
Please help me.
Thanks.
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by benyahia omar:
"Connexion.java" : Erreur No. 302 : classe oracle.jdbc.driver.OracleDriver non accessible ; aucune classe ni source trouv� pour oracle.jdbc.driver.OracleDriver en ligne 17, colonne 66
which means as you guesses class oracle.jdbc.driver.OracleDriver not found


first at all, you ve got JBuilder configured in french!!
(JBuilder uses the locale configuration of your machine ... strange, if U ve got a Windows in french!)
That s mean, you don't have the classes111.zip file in your classpath (in the JBuilder conf)
In Project Options, you ve got the library setup. You should be able to add with the browser this file and give a name to this library (as "oracle driver") the name should be green!
after that, you should be able to use the source browser with "oracle.".
Guillaume from the Eiffel tower
 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic