- Download the latest version of SALSA. You will find the
latest release in this URL: http://www.cs.rpi.edu/wwc/salsa/index.html
- Create a directory called examples and save the HelloWorld.salsa
program inside it. You can use any simple text editor or java editor
to write your SALSA programs. Note that SALSA modules are similar to
java packages. So you have to respect the directory structure when
working with modules as you do when working with packages in Java.
- Compile the SALSA source file into a java source file using the
SALSA compiler. It is recommended to include SALSA jar file in your
class path. Alternatively you can use -cp to specify its path in the
command line. If you are using MS Windows use semi-colon (;) as a
class path delimiter, if you are using just about anything else,
use colon (:).
java -cp salsa<version>.jar:.
salsac.SalsaCompiler examples/*.salsa
- Use any java compiler to compile the generated java file.
Make sure to specify the SALSA class path using -classpath if
you have not included already in your path.
javac -classpath salsa<version>.jar:. examples/*.java
- Execute your program
java -cp salsa<version>.jar:. examples.HelloWorld