The Bridge offers the Java add-on to reuse Java classes within xUML services. It uses the Java Native Interface (JNI), a native programming interface for Java that allows Java code running inside a Java Virtual Machine (JVM) to interact with applications and libraries written in other programming languages like the xUML Runtime.
Each xUML service having imported Java classes and properties resource files will start its own Java Virtual Machine instance. Within the xUML service, class methods can be called without knowing the implementation details.
To use the Java Adapter correctly, it is necessary that the Bridge uses the Java runtime environment version that comes with the standard Bridge installation. Please verify the preferences of the Java Adapter on the Bridge. For details refer to Getting Started with the Java Adapter.
Regarding the examples: The JAR-files, from which the Java classes were imported, are located in the jarfiles directory of Builder project Add-ons/Java. The JAR files also contain the Java sources, which show how to write importable classes.