How to set the CLASSPATH When Using "java -jar...."?
(Doc ID 1506481.1)
Last updated on OCTOBER 06, 2022
Applies to:JDBC - Version 126.96.36.199 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/classes12.zip" 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