Based on the linux (Ubuntu) instructions by Sebastiaan J. (Bas) van Zelst available at https://www.win.tue.nl/~svzelst/misc/
- Download CPN Tools (for windows) from: http://cpntools.org/download
- Install wine:
brew install wine
- Install CPN Tools using wine and make sure to include the MacOS simulator:
wine cpntools_4.0.1.exe
- If this does not work due to a missing java version, download OpenJDK JRE installer from https://adoptopenjdk.net/
- Remember that you have to download the Windows version and install it using wine
- To install the .msi version, use
wine start $installer
, replacing $installer with the actual filename
- Download this bash script and place it in:
~/.wine/drive_c/Program Files (x86)/CPN Tools
(or wherever you installed CPN Tools) - Run the bash script
- The CPN Tools simulator will not be able to start yet; Go to: Options > Simulator Process. There, enable the Remote option and fill out the following details:
- Host: localhost
- Port: 2098
- Runtime: ./cpnsim
- Image path: cpn.ML.x86-darwin
- Restart CPN Tools using the bash script
- If the simulator started correctly then you should see a CPN tools icon on your status bar. Double-click on item to open the CPN Tools Simulator Extension Server.
- If the simulator is still not working, and, in the file
~/.wine/drive_c/Program Files (x86)/CPN Tools/sim_out.log
it is mentioned that java is not recognized as a program, then, runwine regedit
. Within the regedit HKEY_CURRENT_USER/Environment, add a String value, named PATH and the value must be the location of your java binaries. E.g.,C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.232.09-hotspot\bin\
- CPN Tools should now be working properly
Thanks Andrei! This tutorial works for Linux too! You just need to change the 'darwin' word to 'linux' in all commands, and works for Linux!
Thank you for share!