My Oracle Support Banner

SQLcl With GraalVM JDK Running Java Script Shows "org.graalvm.polyglot.PolyglotException: ReferenceError: "Java" is not defined" (Doc ID 2987111.1)

Last updated on DECEMBER 27, 2024

Applies to:

Oracle SQLcl - Version 23.1 and later
Information in this document applies to any platform.

Symptoms

Installed SQLcl 23.1 or later version with JDK Graal VM EE(Enterprise Edition) 22.3.3.

Running a java script shows below error

Changes

 Configured GraalVM 22.3.3 JDK and running SQLcl with

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


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