Exporting a model as a standalone Java application

AnyLogic Professional allows to export your models as standalone Java applications. This provides users with ability to run AnyLogic models standalone without AnyLogic being installed on their machines.

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. 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).
  4. If you want to browse to the exported model folder on export completion, leave the check box Browse exported model folder selected.
  5. If you plan to run this standalone model under other operating systems (e.g. distribute your model to other users who might potentially use other OSes), you should provide the model with macOS and Linux versions of the browser which will be used to show the standalone model's animation. To download the pack of the Chromium browser, containing browser versions for Windows, macOS and Linux, click the For multiple operating systems support... link. This will start the download process. The browsers will be downloaded to the standalone model's folder, and this will make the standalone model completely cross-platform.
  6. 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>_<OS 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.

Related topics

Exporting a standalone application from command line