add a java file.