fixed generation of java project and compilation succeed