Getting Started: /usr/local/java/bin Make Sure That This Directory Is in Your Load Path. Javac
Getting Started: /usr/local/java/bin Make Sure That This Directory Is in Your Load Path. Javac
Java is in /usr/local/java/bin; make sure that this directory is in your load path.
Use javac to compile java programs as in
prompt% javac Hello.java
The compiler produces files with the extension .class, which is the object code for
each of the classes defined within the file.
If you've written an application, you can run it using java; as in:
prompt% java Hello
Hello World!
In this case, we need to inherit the Applet class for our class definition. Additionally,
we overwrite a method from the class, paint, to print what we want.
We also need the companion html file, as shown in your notes to define the size of the
window to open and designates the java code to be run within it.