From ca08301cf26b5bd2cf047cf59572ca901c5f78ba Mon Sep 17 00:00:00 2001
From: Stefan Bodewig importClass/importPackage. For other packages you
full classified name with Packages. For example
Ant's FileUtils class can be imported
with importClass(Packages.org.apache.tools.ant.util.FileUtils)
In Java 8+, you may use the built-in Nashorn JavaScript engine rather than Rhino (which is +
In Java 8 up until Java 14, you may use the built-in Nashorn JavaScript engine rather than Rhino (which is
available in Java 7 runtime). Then, use Java.type as import statement for any Java
class
or the
compatibility script: load("nashorn:mozilla_compat.js");.
Starting with Java 15 Nashorn has been removed again and you need
+ to provide an external JavaScript engine. Your best option probably
+ is GraalVM
+ JavaScript which requires you to add a lot of extra jars. For
+ GraalVM JavaScript 20.1 you'll
+ need org.graalvm.js:js, org.graalvm.js:js-engine
+ which in turn
+ require org.graalvm.regex:regex, org.graalvm.truffle:truffle-api, org.graalvm.sdk:graal-sdk,
+ and com.ibm.icu:icu4j. GraalVM JavaScript is not a
+ drop-in replacement for Nashorn, see
+ Graal's Nashorn
+ Migration Guide for more details.
The <script> task populates the Project instance under the
name project, so we can use that reference. Another way is to use its
given name or getting its reference from the task itself. The Project provides methods for accessing
diff --git a/manual/install.html b/manual/install.html
index 4938e632b..3984bee36 100644
--- a/manual/install.html
+++ b/manual/install.html
@@ -828,11 +828,26 @@ these tasks available. Please refer to the Installing A
target="_top">https://www.ibm.com/software/awdtools/netrexx/library.html