Setup MontiArc
MontiArc runs on any platform. In the following tutorials, we will use both the CLI and the Gradle plugin.
Gradle
If you only ever want to use the Gradle plugin, the only thing you need is Java 11. So if you haven't already, now is the right time to install Java 11.
Run the CLI Manually
To run the CLI manually, you need to have Java 11 installed. Next, download the MontiArc-7.8.0.jar.
You can then run the tool with:
java -jar MontiArc-7.8.0.jar
Install the CLI (BETA)
If you also want to use the CLI, you can find installers for all platforms here. Download the installer for your platform, extract, and run it.
Add MontiArc to PATH
To be able to run the MontiArc command from anywhere, you will need to update your path variable.
- Open the advanced system settings (Erweiterte System Eigenschaften) by pressing the Windows key and searching for it.
- Press Environment Variables (Umgebungsvariablen)
- Inside the user variables, look for
Path
- If
Path
exists- Select
Path
- Click Edit...
- Click New...
- Insert
C:\Program Files\MontiArc\
- Click OK three times
- Select
- If
Path
does not exist- Click New... in the user variables section
- Set Variable Name to
Path
- Set Variable Value to
C:\Program Files\MontiArc\
- Click OK three times
- If
Add export PATH="/Applications/MontiArc/bin:$PATH"
to your ~/.zshrc
file.
If that file doesn't exist, create it. Restart your shell or run source ~/.zshrc
to load the changes.
You should already know how to add a program to your path?
If not, simply add export PATH="/opt/montiarc/bin:$PATH"
to whatever shell's rc script you're using (likely ~/.bashrc
).
You can then run the tool by running:
MontiArc
When you intend to run the simulation using the CLI, you'll need Java 11 anyway.
You can find detailed descriptions and available parameters in the usage section.