Exporting a model as Standalone Java Application

AnyLogic Professional allows to export your models as standalone Java applications and run them on other computers without AnyLogic software.

Java applications can communicate with databases, external files and other applications. This feature enables you to embed simulation models into larger decision support systems.

 To export a model as Java application

  1. Select any item of the model in the Projects view and choose Export >To standalone Java application from the main menu, or
    Right-click (Mac OS: Ctrl+click) the model in the Projects view (the top-level item of the model tree) and choose Export >To standalone Java application from the popup menu.
  2. This opens the Export Model dialog box.

  1. Select the experiment, which settings you want to be applied to the model, from the Experiment to Export drop-down list.
  2. Specify a folder, where you want files of exported model to be stored, in the Destination folder box. You can browse for the destination folder using the Browse button.
  3. If you want to browse to the exported model folder on export completion, leave the check box Browse exported model folder selected.
  4. By default, toolbar buttons and other UI elements of your standalone application will be named according to the locale settings of your computer. If you, however, plan to share your application with customers from other countries, choose other language from the Language drop-down list).
  5. Click Finish. You will see a message box informing you that the model was successfully exported.
The model exported as Java application consists of the following files:
Simulation Application (AnyLogic model exported as standalone Java application) does not require AnyLogic installed on the computer and can be run on any Java-enabled machine (computer with JRE (Java Runtime Environment) 1.8.0 or later installed (download the latest JRE from the Sun website)).

 To run Simulation Application (AnyLogic model exported as standalone Java application)

  1. Launch the <model name>.bat/.cmd/.sh file generated for the exported model. The file might be located in the folder you have specified whlie exporting the model.

Having run the application, you will see the model window. The model exported as standalone Java application is executed by runtime version of the AnyLogic simulation engine - AnyLogic Engine Runtime. With the help of the About program dialog box you can know the version of the AnyLogic Engine Runtime used by the model as well as the Java version and architecture (32- or 64-bit) and also get access to the license agreement.

The size of the window is defined in the properties of the exported model, in AnyLogic IDE.