Registry / other / nashorn-core

nashorn-core

JSON →
library15.1.1javamavenunverified

Nashorn is an Open Source JavaScript (ECMAScript 5.1 and some 6 features) engine for the JVM.

<dependency> <groupId>org.openjdk.nashorn</groupId> <artifactId>nashorn-core</artifactId> <version>15.1.1</version> </dependency>
INSTALL
IMPORT
SIG · NASHORN-CORE
N
nashorn-core
otherjavav15.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NashornScriptEngineFactory
jdk.nashorn.api.scripting.NashornScriptEngineFactory

Execute JavaScript with Nashorn

import jdk.nashorn.api.scripting.NashornScriptEngineFactory; import javax.script.ScriptEngine; public class Example { public static void main(String[] args) throws Exception { NashornScriptEngineFactory factory = new NashornScriptEngineFactory(); ScriptEngine engine = factory.getScriptEngine(); engine.eval("print('Hello from Nashorn');"); } }
Debug
Known issues
breakingNashorn is deprecated in JDK 15+ and removed in later versions; consider using GraalVM JavaScript.
fix
Use org.graalvm.js:js-scriptengine for modern JVMs.
affects: >=15.0.0
Upgrade
Version history
15.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
nashorn-core — mvn dependency:get nashorn-core · libregistry