Skip to content

Commit 1c7a231

Browse files
committed
Document another way to get back nashorn on jdk 15
1 parent 305ce7c commit 1c7a231

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

xdocs/changes.xml

+22-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,28 @@ export JVM_ARGS="-Dnashorn.args=--no-deprecation-warning"
334334
</li>
335335

336336
<li>
337-
With Java 15 the JavaScript implementation <a href="https://openjdk.java.net/jeps/372">Nashorn has been removed</a>. To add back a JSR-223 compatible JavaScript engine, 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>.
337+
With Java 15 the JavaScript implementation <a href="https://openjdk.java.net/jeps/372">Nashorn has been removed</a>. To add back a JSR-223 compatible JavaScript engine you have two options:
338+
<dl>
339+
<dt>Use Mozilla Rhino</dt>
340+
<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>
341+
<dt>Use OpenJDK Nashorn</dt>
342+
<dd>
343+
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:
344+
<source>
345+
mkdir lib/modules
346+
pushd lib/modules
347+
wget https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.0/nashorn-core-15.0.jar
348+
wget https://repo1.maven.org/maven2/org/ow2/asm/asm/9.0/asm-9.0.jar
349+
wget https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/9.0/asm-commons-9.0.jar
350+
wget https://repo1.maven.org/maven2/org/ow2/asm/asm-util/9.0/asm-util-9.0.jar
351+
wget https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/9.0/asm-tree-9.0.jar
352+
wget https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/9.0/asm-analysis-9.0.jar
353+
popd
354+
export JVM_ARGS="--modulepath $PWD/lib/modules"
355+
./bin/jmeter
356+
</source>
357+
</dd>
358+
</dl>
338359
</li>
339360

340361
</ul>

0 commit comments

Comments
 (0)