My Oracle Support Banner

Error: Could not find or load main class When Trying to Compile Java Program (Doc ID 2250827.1)

Last updated on DECEMBER 14, 2018

Applies to:

JDBC - Version 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-\sqldeveloper\jdbc\lib>>java -cp ojdbc6.jar;
Error: Could not find or load main class

The ojdbc6.jar and files located under "C:\Desktop\sqldeveloper-\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!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.