Modify and Compile java file