Eclipse:“SDK目录‘/myproject/war’”不存在”

发布于 2024-11-28 11:13:12 字数 1446 浏览 1 评论 0 原文

今天早些时候,我的 Eclipse 开始表现得很奇怪。当我在“属性”→“Google”→“App Engine”中更改项目的 Google App Engine SDK 并单击“确定”时,会出现一个对话框,显示:

'使用 /home/dominik/.eclipse/org.eclipse.platform_3.7.0_1543616141/plugins/com.google.appengine.eclipse.sdkbundle_1.5.2.r37v201107211953 中的 jar 更新 /myproject/war/WEB-INF/lib /appengine-java-sdk-1.5.2 - 1.5.2'遇到了问题。

SDK 目录“/myproject/war”不存在

如果我点击 Details >> 它会显示:

SDK 目录“/myproject/war”不存在

标准输出上没有错误。我不知道为什么eclipse要寻找/myproject/war。它应该是 /home/dominik/workspace/myproject/war。在属性→资源中我有:

路径:/myproject

类型:项目

位置:/home/dominik/workspace/myproject

删除 .eclipse 文件夹并重新安装插件没有帮助。日志 (workspace/.metadata/.log) 包含以下几行:

!ENTRY com.google.appengine.eclipse.core 4 0 2011-08-06 18:59:33.999

!MESSAGE SDK 目录“/myproject/war”不存在

我在 App Engine 问题跟踪器上发布了更详细的堆栈跟踪: http://code.google.com/p/googleappengine/issues/detail?id=5518

Google 搜索发现一个线程存在相同问题,但没有解决方案:http://forum.springsource.org/showthread.php?91089-Spring-3.0.2-JPA-2.0-Hibernate-3.5.0

Earlier today my Eclipse started to behave strangely. When I change the Google App Engine SDK of my project in Properties → Google → App Engine and click on OK, a dialog appears saying:

'Updating /myproject/war/WEB-INF/lib with jars from /home/dominik/.eclipse/org.eclipse.platform_3.7.0_1543616141/plugins/com.google.appengine.eclipse.sdkbundle_1.5.2.r37v201107211953/appengine-java-sdk-1.5.2 - 1.5.2' has encountered a problem.

SDK directory '/myproject/war' does not exist

If I click on Details >> it says:

SDK directory '/myproject/war' does not exist

There is no error on stdout. I don't know why eclipse is looking for /myproject/war. It should be /home/dominik/workspace/myproject/war. In Properties → Resource I have:

Path: /myproject

Type: Project

Location: /home/dominik/workspace/myproject

Deleting the .eclipse folder and reinstalling the plugin didn't help. The log (workspace/.metadata/.log) has the following lines:

!ENTRY com.google.appengine.eclipse.core 4 0 2011-08-06 18:59:33.999

!MESSAGE SDK directory '/myproject/war' does not exist

I posted a more detailed stack trace on the App Engine issue tracker: http://code.google.com/p/googleappengine/issues/detail?id=5518

A Google search found one thread with the same problem but no solution: http://forum.springsource.org/showthread.php?91089-Spring-3.0.2-JPA-2.0-Hibernate-3.5.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夜空下最亮的亮点 2024-12-05 11:13:12

我仍然不知道是什么导致了问题,但是创建一个新项目并手动将所有项目文件移动到新文件夹中解决了这个问题。

I still don't know what caused the problem, but creating a new project and manually moving all the project files into the new folder solved it.

南汐寒笙箫 2024-12-05 11:13:12

对同一问题的稍微简单的解决方案;删除Eclipse中的项目并重新导入。

A slightly easier solution to the same problem; delete the project inside Eclipse and re-import it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文