u have to instal (jdk) first
then u have to add the path: <jdk home>/bin to Path
inviroment variable in windows or unix as u have
then from the path u save the file *.java in write:
javac filename.java then press Enter.
this will comile the program
if u wanna run it u have to write:
java filename then press enter
Have anice cup of Java