A Java compiler for a worse version of Java.
To install, download and unzip the most recent release. Add export PATH="$PATH:/path/to/minijavac-x.y.z/bin"
to your bashrc or set the equivalent Windows environment variable.
Minijavac has four commands: generate
, lex
, parse
and typecheck
. Each takes exactly one file as a command line argument. generate
will create one .class
file for each Java class in the source file. The other commands write to standard out.
$ minijavac
usage: minijavac <command> [<args>]
The most commonly used minijavac commands are:
generate Generate bytecode for Minijava programs
lex Lexical analysis of Minijava program
parse Parse Minijava program
typecheck Typecheck Minijava program
See 'minijavac help <command>' for more information on a specific command.
Minijavac requires Java 1.5 to execute the bytecode from the generate
command.