To use your own allowed Java packages in an ARIS report, add the jar file to the related script category or the Common files folder and force the script to import this file during runtime. Then you can use the classes from this jar file as any other class, for example, var x = new packagename.classname(xyz).
Some Java classes cannot be used, such as java.lang.System, java.lang.Runtime, java.lang.ClassLoader, and all internally used ARIS classes.
If you use a report in ARIS Enterprise or ARIS Advanced, using external classes is only allowed if the class is contained in one of the following packages. From these packages, the classes listed as not allowed cannot be used:
java.awt
not allowed:
java.awt.Desktop
java.awt.GraphicsDevice
java.awt.SystemTray
java.awt.Toolkit
java.io
not allowed:
java.io.File
java.io.FileInputStream
java.io.FileOutputStream
java.io.FileReader
java.io.FileWriter
java.io.PrintStream
java.io.PrintWriter
java.io.RandomAccessFile
java.lang
not allowed:
java.lang.ClassLoader
java.lang.Thread
java.lang.System
java.lang.Runtime
java.lang.ref
java.math
java.text
java.time
java.util
javax.imageio
javax.xml
javax.xml.xpath
org.jdom
org.jdom2