Jdeveloper wont compile [message #91399] |
Sat, 10 August 2002 06:09 |
Mike Desouza
Messages: 3 Registered: August 2002
|
Junior Member |
|
|
Hi all
tried compiling the following program with Jdeveloper
import java.sql.*;
class myjdbc {
public static void main (String args[[]]) throws SQLException {
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
String dbconnect = "jdbc:oracle:oci8:@";
java.util.Properties info = new java.util.Properties();
info.put ("user","ora1");
info.put ("password","ora1");
info.put ("database","test");
Connection conn;
try {conn = DriverManager.getConnection(dbconnect,info);}
catch (SQLException e)
{ System.out.println("Unable to connect to database");
throw e; // Must stop the application
// Should really use nested trys - but I don't like them this early in the code!
}
}
}
It Failed to compile with the following error message
Error(4,56): cannot access class oracle.jdbc.driver.OracleDriver; file oraclejdbcdriverOracleDriver.class not found
It works fine using javac , I am running j2sdk1.4.0_01 , now is there some configuration changes that I need to make to Jdeveloper
Any Help appreciated .
|
|
|
|