Fixed java compilation