This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new c074d9a Fix wrong JVM arg to set up module path for nashorn/Java 15
c074d9a is described below
commit c074d9aa1f693957994490289e38c6435b5d7b75
Author: Felix Schumacher <[email protected]>
AuthorDate: Thu Nov 18 17:58:20 2021 +0100
Fix wrong JVM arg to set up module path for nashorn/Java 15
and while we are here, update the example to use newer versions
of the jars
---
xdocs/changes.xml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 3ff29cc..4b98e3c 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -358,18 +358,18 @@ With Java 15 the JavaScript implementation <a
href="https://openjdk.java.net/jep
<dd>Copy <a
href="https://github.com/mozilla/rhino/releases/download/Rhino1_7_13_Release/rhino-engine-1.7.13.jar">rhino-engine-1.7.13.jar</a>
into <code>$JMETER_HOME/lib/ext</code>.</dd>
<dt>Use OpenJDK Nashorn</dt>
<dd>
- The OpenJDK Nashorn implementation comes as a module. To use it, you
will have to download it and add it to the module path. A hacky way to download
the version 15.0 and its dependencies and set the module path is outlined below:
+ The OpenJDK Nashorn implementation comes as a module. To use it, you
will have to download it and add it to the module path. A hacky way to download
the version 15.0 (or later) and its dependencies and set the module path is
outlined below:
<source>
mkdir lib/modules
pushd lib/modules
-wget
https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.0/nashorn-core-15.0.jar
-wget https://repo1.maven.org/maven2/org/ow2/asm/asm/9.0/asm-9.0.jar
-wget
https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/9.0/asm-commons-9.0.jar
-wget https://repo1.maven.org/maven2/org/ow2/asm/asm-util/9.0/asm-util-9.0.jar
-wget https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/9.0/asm-tree-9.0.jar
-wget
https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/9.0/asm-analysis-9.0.jar
+wget
https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar
+wget https://repo1.maven.org/maven2/org/ow2/asm/asm/9.2/asm-9.2.jar
+wget
https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar
+wget https://repo1.maven.org/maven2/org/ow2/asm/asm-util/9.2/asm-util-9.2.jar
+wget https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar
+wget
https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar
popd
-export JVM_ARGS="--modulepath $PWD/lib/modules"
+export JVM_ARGS="--module-path $PWD/lib/modules"
./bin/jmeter
</source>
</dd>