Nashorn has two distribution channels:
We'll refer to these as "built-in" and "standalone" versions of Nashorn. The table below summarizes what versions of Java can use what version of Nashorn:
Java Built-in Standalone 7 and earlier ⛔ ⛔ 8-10 ✅ ⛔ 11-14 ✅ ✅ 15 and later ⛔ ✅ Using Nashorn on Java 11 to 14Some consideration is necessary if you want to distribute an application that uses Nashorn and it should run both on Java 11-14 and Java 15+ versions. You can bundle standalone Nashorn with your application, but note that when running on Java versions between 11-14, built-in Nashorn will also be available to it. Which one gets used depends on several factors:
jdk.nashorn.api.scripting.NashornScriptEngineFactory
andorg.openjdk.nashorn.api.scripting.NashornScriptEngineFactory
. If you use explicit APIs, we recommend you use standalone Nashorn in this case as your application is then future-proof for Java 15 and beyond and leave built-in Nashorn inactive.javax.script.*
APIs, i.e. with an expression like ScriptEngineManager.getEngineByName("nashorn")
then you will get:
--module-path
option as it gets precedence there, butRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4