My Oracle Support Banner

java.lang.ClassNotFoundException: sqlj.tools.Sqlj When Running SQLJ (Doc ID 1455392.1)

Last updated on AUGUST 30, 2023

Applies to:

SQLJ - Version 11.1.0.6 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.0.6 version, Java with Embedded SQL.


After installation of SQLJ, cheching its version with 'sqlj -version -long', or running a program, fails with:


Exception in thread "main" java.lang.NoClassDefFoundError: sqlj/tools/Sqlj
Caused by: java.lang.ClassNotFoundException: sqlj.tools.Sqlj
  ...
Could not find the main class: sqlj.tools.Sqlj. Program will exit.


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
Cause
Solution


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