Eclipse with Oracle JDBC
Follow this steps to use Eclipse with an Oracle JDBC Driver.
- Download the Oracle JDBC Driver (Interoperability Matrix)
- Classpath must include the location of the Driver (.jar file)
OR
Save it in:JAVA_HOME/jre/lib/ext/ - Now let’s code… example
- Rename to DBconnect.java and adapt the parameters for DriverManager.getConnection
C:\>javac DBconnect.java C:\>java DBconnect Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for HPUX: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production