Frequently Asked Questions
UBC Mathematics: MathNet FAQ [Java Programs]



UBC Mathematics: MathNet FAQ [Java Programs]



Question: How do I compile and run Java programs?
Author: Joseph Tam
Date: Dec. 15, 2004

To compile a Java program into its .class byte-code, use the Jikes compiler:

	jikes -bootclasspath /nfs/packages/java/lib/rt.jar file.java

or Sun's compiler: javac file.java

The Jikes compiler is usually much faster. To run the resulting .class file, use the command:

	java file
 
Top