Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compiling under JBuilder

 
benyahia omar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic