Java "Compiler"
Compiles into machine-independent "bytecode format". This format
was developed by Sun Microsystems to be at a higher-level than machine
code so that it could be interpreted (instead of executed) on different
types of machines with the same compiled file.
On your Unix account, you must make sure that the PATH variable
includes the bin directory created from downloading the JDK.
Source Filename Convention
You will have one or more files named like filename.java
Typically you will set filename = the class name that is
contained in this file.
Output Filename Convention
For each class contained in a file filename.java a seperate class
file will be produced called classname.class. For example,
if you have a file called mybank.java and it contains definitions
for two classes called Checking, and Savings, the
following two files will be produced by the compiler: Savings.class
and Checking.class
How to Compile
% javac filename.java
|
|