Home » Developer & Programmer » JDeveloper, Java & XML » Jdeveloper wont compile
Jdeveloper wont compile [message #91399] Sat, 10 August 2002 06:09 Go to next message
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 .
Re: Jdeveloper wont compile [message #91579 is a reply to message #91399] Wed, 27 November 2002 03:32 Go to previous message
Messages: 1
Registered: November 2002
Junior Member
Add JDBS library into your project property
Previous Topic: Re: sample test questions for OCP exams IZO-501/502/504/505
Next Topic: Re: JSP database connectivity
Goto Forum:

Current Time: Wed Nov 30 18:56:50 CST 2022