CSCI.4430/6969 Programming Languages-- Fall 2003
Instructions For Running OpenJava:
We have placed OpenJava's wrapper script, ojc, into the
/projects/proglang03/bin/ directory. You can build an
OpenJava project by adding /projects/proglang03/bin/ to
your $PATH, as you did with the Scheme executable
directory, and invoking the preprocessor and Java compiler with:
% ojc Hello.oj
where Hello.oj is your OpenJava file. ojc will
run the preprocessor and the Java compiler on your source, so this
should be all you have to do.
Basically, set your $PATH, and say ojc instead
of javac.
To run your compiled code, say:
% java Hello
java should already be in your $PATH, in
/usr/local/bin/, and Hello.class is the
output of ojc and javac.
That's it. Go program.
Last Updated -- October 21, 2003.