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.pmlto run spin. If you still want jSpin, carry on. - Download the
jspin*.zipfile from their download site or direct link for 5.0 - Unzip it
- Download
config.cfgbelow and place it in the unzipped folder. - Replace
config.cfgline 12 =>SPIN=/usr/local/bin/spin - Replace
config.cfgline 27 =>C_COMPILER=/usr/bin/gcc - Double click on
jSpin.jaror runjava -jar jSpin.jar
- Download the sources and follow the instructions on their site. Do not install
iSpinjust spin. The filebuild.shmay be helpful for you. - Make sure you make the
spinexecutable available at/usr/bin/spin. You can usesymlinks. - Download the
jspin*.zipfile from their download site or direct link for 5.0 - Unzip it
- Download
config.cfgbelow and place it in the unzipped folder. - Pay attention to line 12 of
config.cfgas it should link to the spin executable you installed earlier. - Double click on
jSpin.jaror runjava -jar jSpin.jar
The best I got for troubleshooting is to simply walk through the
config.cfgfile 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
spinin the command line to compile and run your promela files (C style) or other IDE's such asiSpin.
Jspin does not work well with Java 1.7 and greater. The GUI is severely affected when you attempt to run it.