Error: Could not find or load main class When Trying to Compile Java Program
(Doc ID 2250827.1)
Last updated on MAY 31, 2023
Applies to:
JDBC - Version 11.2.0.1.0 and laterInformation in this document applies to any platform.
Symptoms
When trying to perform the JDBC connection and load balancing portion in <Document:1290193.1> Using SCAN With Oracle JDBC 11g Thin Driver, script compilation fails with error:
java -cp ojdbc6.jar; LoadBalanceTestSCAN.java
Error: Could not find or load main class LoadBalanceTestSCAN.java
The ojdbc6.jar and LoadBalanceTestSCAN.java files located under "C:\Desktop\sqldeveloper-3.2.20.09.87\sqldeveloper\jdbc\lib" directory.
Changes
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |