Error: Could not find or load main class When Trying to Compile Java Program
(Doc ID 2250827.1)
Last updated on APRIL 02, 2017
Applies to:JDBC - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
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:
C:\Desktop\sqldeveloper-3.2.20.09.87\sqldeveloper\jdbc\lib>>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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!