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 9.2.0.8 and later
Information in this document applies to any platform.

Goal

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/classes12.zip" main.Main

How to set this up to use CLASSPATH environment variable?
 

Solution

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
Goal
Solution


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