将 Eclipse 项目从 Windows 迁移到 Ubuntu 后,Eclipse 在所有地方显示 "cannot be resolved" 编译错误

After migrating Eclipse project from Windows to Ubuntu, Eclipse shows "cannot be resolved" compilation errors over all place

我在 windows 7 上使用 tomcat 作为服务器在 eclipse 中创建了一个网站,并且运行良好。但现在我已经从 windows 迁移到 ubuntu。我已经安装了 java 并且运行良好。但是我的日食在每条语句上都显示错误(这无法解决)。请建议如何解决此问题。

很可能您的日食指的是与 windows 路径关联的 JRE。只需前往

Project Setting -> Java Build Path -> Edit/re-add JRE

您的 ubuntu 系统路径正确