Archive for the ‘programming tip’ Category

Salsa actors for java concurrency: a tip

Monday, May 7th, 2007

If you want to spare your wrists and brachial plexus while trying out Salsa for java ( not to be confused with Sun’s JackPot ) then this can be handy.

First copy the salsa.jar to, say, salsac.jar

Open the jar with, say, an unzip, and extract with directory the Manifest.mf to some root drive ( I tolerate a /META-INF on a spare drive for this task ).

Then add one line to the extracted Manifest.mf

An example would be

Main-Class: salsac.SalsaCompiler

Now just add that back into the jar by your fave means.

From the jar’s directory test with

java -cp salsac.jar

and

java -cp salsac.jar -version

And enjoy!