Fix Java errors just after project is imported