Java Compile Script
#This will compile the script and create fileName.class file
javac fileName.java
#To run the compiled file use
java fileName
#When compiling you can use the -d option to place the compiled file in another folder
javac fileName.java -d ./bin
Classy Answer