Exporting a model as a standalone Java
Professional allows to export your models as standalone Java
applications. This provides users with ability to run
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.
export a model as Java application
- Select any item of the model in the Projects view and
>To standalone Java application from the
main menu, or
Right-click (Mac OS: Ctrl+click) the model in the Projects
top-level item of the model tree) and choose
Export >To standalone Java
application from the
- This opens the Export
Model dialog box.
The model exported as Java application consists of the following files:
- Select the experiment, which settings you want to be
applied to the model, from the Experiment
to Export drop-down list.
- 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
- By default, toolbar buttons and other UI elements
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
- If you want to browse to the exported model folder
completion, leave the check box Browse
exported model folder
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.
- Click Finish.
You will see a message box informing you that the model was
(AnyLogic model exported as standalone Java application) does not
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)).
name>_windows.bat file that
is used to run the standalone application on Windows;
name>_mac.cmd file that
is used to run the standalone application on macOS;
name>_linux.sh file that
is used to run the standalone application on Linux;
- model.jar - compiled
- lib folder: library
files required by the model (database driver library,
AnyLogic engine file (com.anylogic.engine.jar), etc.);
- (optionally) .jar files
classes required to build the model (listed in the model
- (optionally) chromium
folder: the Chromium pack (portable Chromium browsers to display model
animation on Windows, Linux and macOs);
- AnyLogic Model User Agreement.pdf
- AnyLogic Model User Agreement in Adobe Reader (.pdf) format;
- readme.txt - brief
instructions in text format;
- license.txt - AnyLogic
Model User Agreement in text format.
run Simulation Application (AnyLogic model exported as standalone Java
- Launch the <model
generated for the exported model. The file might be located in
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
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.
Exporting a standalone application from command line