Runtime Options - archimatetool/archi-scripting-plugin GitHub Wiki
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 GraalVM Script Engine
Add this to the script file:
Java.addToClasspath("path_to/extension.jar");
Using the Nashorn Script Engine
Add this to the Archi.ini
file:
-Dnashorn.args=-cp path_to/extension.jar