fix java compilation