JDBC Thin driver for Oracle doesnt load  
Author Message
MAB





PostPosted: 2004-8-2 20:53:00 Top

java-programmer, JDBC Thin driver for Oracle doesnt load I'm using Oracle's JDeveloper 10g so the driver should exist. however this
code raises the ClassNotFoundException. so my questions

1. Whats the simplest way to tell if the thin driver for oracle ( or any
other JDBC driver ) exists?
2. If it does not exist where can I download it and where should I put it?
3. If it exists then why doesn't this code run? I've even tried to register
with the DriverManager but the same error.


thx.


import java.sql.*;

public class JDBCThin
{

public static void main(String[] args)
{

try {

Class.forName("oracle.jdbc.driver.OracleDriver");

}

catch ( ClassNotFoundException e )
{
System.out.println(e.getMessage()) ;
}
}

}


 
gevatron





PostPosted: 2004-8-3 2:00:00 Top

java-programmer >> JDBC Thin driver for Oracle doesnt load Did you add the JDBC library to your project settings in JDeveloper?

Shay,
http://otn.oracle.com/products/jdev