I am writing a java program on putty

i have my p.java class as follows

/** comments

*/
public enum p{yes,no};

and this tells me i need a class or an interface and im so confused as to what is happening?
When i compile of putty with javac *.java it comes up with errors.

Could it be that its not the latest java compiler? If so i have a makefile so how do i add...