Index
Overview


For this example we'll compile "Foo.java"

Before Starting


  • Download class Foo.
  • Open downloaded ZIP file, copy Foo.java into a working directory like "\Work\Scratch".


Compiling Using Console


  • Open a console to the working directory (e.g., "Scratch")
  • Run the javac command as shown
C:\Work\Scratch>javac Foo.java

C:\Work\Scratch>


Compiling Using Script


Copy this script text into a file named "compile.bat":

echo off
javac Foo.java
pause


Save the script file.

In a file browser, select and run the script file.