You have been redirected here, which houses content from our former
website; this content may or may not be current. Our
official website
may have more up-to-date information.
|
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
|
|