Robert M. Patterson, Sc.D., CIH
Professor and Director, Environmental Health Program
Department of Public Health
Temple University
Philadelphia, Pennsylvania 19122
Phone 215.204.1665 Fax 215.204.1854
john
All Java programs are compiled into a code (beta-code) which works
ona a Java Virtual Machine. The VM is itself a program and libraries
albe to execute the beta code.
To obtain the VM one must download the Java Runtime Environment(JRE)
from Sun:
http://java.sun.com/getjava/
But Mac OS X 10.1 includes the Java 2 Platform, Standard Edition
(J2SETM) version 1.3.1
I am not a Mac user, but the way you run a Java program on a Windows,
Linux, or Unix system is to type:
java NameOfClass
java starts the VM and NameOfClass is the name of the main class
file (Whatever.class) without extension.
If the program is packaged into a JAR file, then the syntax is slightly
different (this time the extension is not ommited):
java -jar NameOfClass.jar
I hope this helps, more information may be found on the java.sun.
com and http://www.apple.com/java/ websites.
Michal Karzynski