Creating Java Modules

A Java module is used to store code of modules in the Java language in repository. A Java module can be executed from Fore application code. It is recommended to develop and debug units in specialized development environments aimed at working with the Java language. A Java module can be populated and executed only in application code.

NOTE. Working with Java modules is available only in the desktop application. The installed Java software should be of 8 version or later. Bitness of Java and Foresight Analytics Platform should match. For details see the Connecting External Modules to Foresight Analytics Platform section.

Create a Java module

To populate a Java module, write a Fore code using Java language syntax or insert the previously written and tested module using the IJavaModule.Text property.

To use code from the Java module, use resources of the Java assembly. To execute single functions, use the Java.InvokeModule or IJavaUtils.InvokeModule method; to work with classes, use the JavaClassObject.CreateClass constructor.

See also:

Developing User Application