无法获取要运行的样本
我无法启动示例项目(可爱和展示),并且不知道为什么。我正在 Eclipse 中进行开发,因此遵循入门中的说明。
我在 Eclipse 中出现以下警告:
Description Resource Path Location Type
Classpath entry com.google.gwt.eclipse.core.GWT_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result. playn-cute-html P/playn-cute-html Classpath Dependency Validator Message
我不知道这是否是问题所在?我该如何解决这个问题?
I cannot launch the sample projects (cute and showcase) and do not know why. I am developing in Eclipse, and therefore have followed the instructions in GettingStarted.
I have the following warning in Eclipse:
Description Resource Path Location Type
Classpath entry com.google.gwt.eclipse.core.GWT_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result. playn-cute-html P/playn-cute-html Classpath Dependency Validator Message
I don't know if this is the problem? How would I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想对这个问题投赞成票,因为我遇到了同样的问题。但我的业力还不够。因此,我将在这里提供一些我自己的详细信息,希望有人可以解决这个问题。
我的系统:
当我使用 GWT Chrome 插件在开发模式下运行调试版本时,我能够在 Chrome 中运行展示示例。我什至让它在非开发模式下运行过一次——但我不知道如何!我正在摆弄各种事情。
我看到这个路径是在 playn-samples/showcase/html/.classpath 中设置的。目前我有以下设置:
根据我在谷歌搜索此问题时遇到的一些设置,我将其更改为:
这就是我运行它的时候。但是当我重新启动 Eclipse 时,该设置似乎并没有保留,并且我无法重新获得成功。
我怀疑这是某种配置设置,但我只是在黑暗中摸索。
I'd like to upvote this question as I'm running into this same problem. But I don't have enough karma. So I'll offer a few of my own details here in the hope that someone can solve this.
My system:
I was able to get the showcase example running in Chrome when I ran the debug version in development mode with the GWT Chrome plugin. And I even got it running in non-development mode once -- but I'm not sure how! I was fiddling with various things.
I see this path is set in playn-samples/showcase/html/.classpath. Currently I have the following setting:
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/com.google.gdt.eclipse.suite.3.7.update.site_2.5.1"/>
Based on some settings I ran into while Googling this problem, I changed it to:
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER/GWT"/>
And that's when I got it running. But the setting doesn't seem to stick when I restart Eclipse and I haven't been able to recreate my success.
I suspect it's some sort of config setting but I'm just groping in the dark.
我自己并没有太多使用 Eclipse 和 playn,但我可以告诉你,你不是第一个在 Eclipse 和 playn 中遇到此类问题的人,我强烈建议你通过 Maven 尽可能多地使用,如入门页面 http://code.google.com/p/playn/wiki/GettingStarted 您可以通过 maven 运行和构建,并且仍然使用 Eclipse 编写代码。我希望这对你有帮助。
I myself haven't use much of Eclipse with playn, but I can tell you, you're not the first person running into these kind of problems with Eclipse and playn, I would strongly suggest you to do as much as you can via maven, as detailed in the Getting Started page http://code.google.com/p/playn/wiki/GettingStarted you can run and build via maven, and still use Eclipse for writting code. I hope this helps you.