Fixed building java files procedure

Fixed building java files procedure