My Oracle Support Banner

How to set the CLASSPATH When Using "java -jar...."? (Doc ID 1506481.1)

Last updated on OCTOBER 06, 2022

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


When using the following command it returns class not found exception jdbcdriver oracle driver even when the CLASSPATH environment variable is set.

> java -jar sms_send.jar

The following works when using CLASSPATH inline.

> java -classpath "sms_send.jar:/oracle/ias10/jdbc/lib/" main.Main

How to set this up to use CLASSPATH environment variable?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.