Skip to content
Phil Beauvoir edited this page Feb 21, 2021 · 3 revisions

Adding an external Java jar file to the classpath

See https://forum.archimatetool.com/index.php?topic=958.0 for the background.

If you want to add a Java jar named extension.jar to the runtime classpath so that you can access its Java classes from a jArchi script:

Using the Nashorn Script Engine

Add this to the Archi.ini file:

-Dnashorn.args=-cp path_to/extension.jar

Using the GraalVM Script Engine

Add this to the script file:

Java.addToClasspath("path_to/extension.jar");

Issues

See this bug concerning using jar files: https://github.com/oracle/graaljs/issues/413