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 11.2.0.1.0 and later
Information 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:

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.


Cause

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