Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting classpath to ojdbc.jar on UNIX

843859Mar 19 2006 — edited Apr 5 2006
I�m trying to connect to an Oracle database using the ojdbc.jar

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

How do I set the classpath on Unix to look inside the .jar file? I know it�s the correct driver because I�ve pulled the oracle/jdbc/driver/* folder from the jar file and it works.

java -cp .;ojdbc.jar getBlob // not working, ojbc.jar is in the same dir as getBlob.java
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2006
Added on Mar 19 2006
5 comments
685 views