项目 XXX 在其构建路径上没有任何 GWT SDK [英] The project XXX does not have any GWT SDKs on its build path
问题描述
有时,当我在 MacOSX Lion 上启动 Eclipse(Web 开发人员的 Java EE IDE,Indigo SR 1)时,我的 GWT (2.4.0)项目最初无法编译.
Sometimes, when I start Eclipse (Java EE IDE for Web Developers, Indigo SR 1) on my MacOSX Lion, my GWT (2.4.0) project initially fails to compile.
Eclipse 在问题" 部分显示以下消息:
Eclipse displays the following message in the "Problems" section:
The project XXX does not have any GWT SDKs on its build path
以下是有时有效的半解决方案列表(我通常按此顺序尝试它们):
Here is a list of semi-solutions that sometimes work (I normally try them in this order):
项目>干净
.- 删除并重新添加 GWT SDK 到构建路径.
- 重启机器.
欢迎任何帮助防止问题再次发生.
Any help with preventing the problem from re-occurring would be most welcome.
推荐答案
我相信问题的发生是因为 Eclipse 有一些关于可用/链接 GWT 的陈旧设置.
I believe the problem was occurring because Eclipse had some stale settings about available/linked GWTs.
因此,基于 Chris Cashwell 的回答,我推荐以下内容:
Therefore, building on the answer by Chris Cashwell, I recommend the following:
- 从您的构建路径中删除所有 GWT.(您的构建路径中可能有多个 GWT.)
- 在
Project>Properties>Google>Web Toolkit>Configure SDKs
中删除 Eclipse 中链接的所有 GWT,. - 仅添加最新的 GWT,并将其设为默认值.
- Remove all GWTs from your build path. (You might have more than one GWT on your build path.)
- Remove all GWTs linked in Eclipse in
Project>Properties>Google>Web Toolkit>Configure SDKs
, . - Add only the latest GWT, and make it default.
有时,我仍然需要做一个项目>干净
,但现在很少见了.
Sometimes, I still need to do a Project > Clean
, but this is rare now.
这篇关于项目 XXX 在其构建路径上没有任何 GWT SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!