Sun environment.
We shall need to tell Jasmin where to find its and your classes. Put the following into your .cshrc file (please cp .cshrc .cshrc.backup before making the changes in case you make a mistake):
This is how it looks in my .cshrc file:
set jaspath = ( /usr/local/jasmin/bin )
set path = ($OPENWINHOME/bin $OPENWINHOME/bin/xview $jaspath
$svpath $jpath /usr/ucb ~/bin .) Make sure this is on
ONE
line.
Test it by going to any directory and then
Download jasmin.zip and unzip it a directory, say C:\jasmin.In the directory where you will write Jasmin programs (most likely the same one as where you write your java programs), edit a file jasset.bat which will contain the command
set CLASSPATH=.;c:\jasmin\classes;%classpath%When you are ready to run the assembler, at the prompt, type jasset. This will set up the environment so that Jasmin can be found.
In the directory where you will write jasmin programs (most likely the same one as where you write your java programs), edit a file jasmin.bat which will contain the command
java jasmin.Main %1 %2 %3 %4 %5 %6 %7 %8 %9To assemble a program, such as test.j, at the prompt, type jasmin test.j. Note that jasmin is a Java program!