JavaScript
A script engine wrapper for dynamically compiling and evaluating Java source code.
Supports adding named variables with type parameters, import declarations, and configurable isolation levels. Note that Java cannot have a null global context.
Common literal JVM-termination calls (System.exit, Runtime.getRuntime().exit/halt) are rejected on a best-effort basis via ScriptGuards. This is a convenience against accidental termination, not a security sandbox (see ScriptGuards) — run untrusted scripts in an isolated process or JVM.