This is a quick simple guide to getting jSpin setup for Mac and Linux.
You will need:
- Java (1.5 +)
- GCC Compiler (most should have this already)
- Mac only: brew
brew install spin
- At this point you can just run
spin file.pml
to run spin. If you still want jSpin, carry on. - Download the
jspin*.zip
file from their download site or direct link for 5.0 - Unzip it
- Download
config.cfg
below and place it in the unzipped folder. - Replace
config.cfg
line 12 =>SPIN=/usr/local/bin/spin
- Replace
config.cfg
line 27 =>C_COMPILER=/usr/bin/gcc
- Double click on
jSpin.jar
or runjava -jar jSpin.jar
- Download the sources and follow the instructions on their site. Do not install
iSpin
just spin. The filebuild.sh
may be helpful for you. - Make sure you make the
spin
executable available at/usr/bin/spin
. You can usesymlinks
. - Download the
jspin*.zip
file from their download site or direct link for 5.0 - Unzip it
- Download
config.cfg
below and place it in the unzipped folder. - Pay attention to line 12 of
config.cfg
as it should link to the spin executable you installed earlier. - Double click on
jSpin.jar
or runjava -jar jSpin.jar
The best I got for troubleshooting is to simply walk through the
config.cfg
file and make sure all the paths check out to actual binaries. Under no circumstance try to install windows for this to work. You can do it.
Also
Remember jSpin is a java based IDE for spin. You don't need to use it! You can also use
spin
in the command line to compile and run your promela files (C style) or other IDE's such asiSpin
.
Thank you for the tutorial