Error: Could not find or load main class When Trying to Compile Java Program
Last updated on APRIL 02, 2017
Applies to:JDBC - Version 220.127.116.11.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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms