I have already installed JDK in my 12.04, but i don't know how to compile .java files in Terminal.
I used javac FILENAME.java
then java FILENAME
in terminalbut this shows error like this
javac: file not found: sum.java
Usage: javac
use -help for a list of possible options