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 ConventionYou 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 ConventionFor 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.classHow to Compile% javac filename.java |