updares to automatic java file and compilation.