The filename has to be the same as the class/package name, like if your classname is ABC, the filename has to be ABC.java!