File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes compiling  under JBuilder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "compiling  under JBuilder" Watch "compiling  under JBuilder" New topic
Author

compiling under JBuilder

benyahia omar
Greenhorn

Joined: Aug 16, 2001
Posts: 1
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

Joined: Aug 09, 2001
Posts: 106
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


---------<BR>Guillaume
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compiling under JBuilder
 
Similar Threads
WebLogic6.1/Oracle8.1.6 config problem (obvious to someone?)
how to connect jdbc with oracle 8i?
connecting weblogic 6.1 and oracle thru thin driver
ClassNotFoundException
JDBC driver - java lang ClassNotFoundException