Xpress Optimization

Examples of calling Java from Mosel

The examples in this set demonstrate using the "mosjvm" Mosel module to start an in-process Java Virtual Machine and call static methods in Java classes

The examples require an installation of Java, for information on compatible versions and setup instructions please see the mosjvm Module for Mosel manual (PDF or online manual).



Passing single values from a Mosel model to a Java method
 
Passing an array from a Mosel model to a Java method
 
Returning an object from a Java method
 
Handling exceptions thrown by a Java method called from a Mosel model
 

 

  Comments or suggestions about the examples? Please e-mail support@fico.com