Note that the top-level functions available to the shell (such as print) are not available to compiled scripts when they are run outside the shell.
Compiler command line
where options are:
Specifies that debug information should be generated. May not be combined with optimization at an optLevel greater than zero.
Specify the class name used for main method implementation. The class must have a method matching
public static void main(Script sc, String args).
Does not save the source in the class file. Functions and scripts compiled this way cannot be decompiled. This option can be used to avoid distributing source or simply to save space in the resulting class file.
Writes the class file to outputFile, which should end in .class and must be a writable filename.
Writes the class file to outputDirectory.
Optimizes at level optLevel, which must be an integer between -1 and 9. See Optimization for more details. If optLevel is greater than zero,
-debug may not be specified.
Specifies the package to generate the class into. The string packageName must be composed of valid identifier characters optionally separated by periods.
--Norrisboyd 12:26, 13 June 2007 (PDT)