My Oracle Support Banner

Application Using ScriptEngine Shows javax.script.ScriptException with "importPackage" is not defined (Doc ID 3030346.1)

Last updated on JUNE 24, 2024

Applies to:

Oracle WebLogic Server - Version 12.2.1.4.0 and later
Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.

Symptoms

Application using ScriptEngine shows javax.script.ScriptException with '"importPackage" is not defined'.
 
- Source code example 

Changes

 

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.