项目XXX在其构建路径上没有任何GWT SDK [英] The project XXX does not have any GWT SDKs on its build path
问题描述
有时候,当我在我的MacOSX Lion 上启动Eclipse (Java EE IDE for Web Developers,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删除并重新添加到构建路径。
- 重新启动机器。 >
Project > Clean
.- Remove and re-add GWT SDK to the build path.
- Restart the machine.
对于防止重新出现问题的任何帮助将是非常受欢迎的。
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>属性> Google> Web Toolkit>配置SDK
中的所有在Eclipse中链接的GWT li>
- 仅添加最新的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.
编辑:有时,我还需要d o a 项目>清洁
,但现在很少见。
Sometimes, I still need to do a Project > Clean
, but this is rare now.
这篇关于项目XXX在其构建路径上没有任何GWT SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!