1

I am trying to execute a sample application built on GWT 2.6.1 and when I click on app.gwt.xml and say "Run as" -> "GWT Hosted Mode Application", immediately the console prints "Error: Could not find or load main class com.google.gwt.dev.GWTShell"..

As far as the answers that I gathered about this issue is, GWT compiler is looking to read the gwt-dev-windows.jar which is not part of GWT 2.6.1 and I do have gwt-dev.jar in my classpath too.

Can someone suggest me how to figure out this issue.

4

2 回答 2

2

GWTShell在 GWT 2.5.1 中被删除。你应该使用com.google.gwt.dev.DevMode它作为你的主要课程。有关更多信息,请参阅Google Plugin for Eclipse 的文档

于 2015-02-10T14:51:01.427 回答
1

问题是用于 Eclipse 的 Google 插件无法检测到您正在使用的 GWT 版本,并且(错误地 IMO)回退到旧模式(现在我们有 SuperDevMode,这几乎可以称为“旧版”)。

这是 2.6.0 的一个已知问题,但 2.6.1 应该已经“修复”了它。您可能需要更新您的 Google Plugin for Eclipse,或尝试手动将主类更改为com.google.gwt.dev.DevMode.

于 2015-02-10T15:41:04.520 回答