When trying to run a java program, you ommit the ".class" at the end of
the class name e.g.
java myfile
assuming that the class myfile.class is in your current directory and
myfile.class does not specifiy a package e.g. package com.tld.abc;
If you have specified myfile to be in package com.tld.abc then the command
would be
java com.tld.abc.myfile