[英]GWT 2.6.1 Error: Could not find or load main class com.google.gwt.dev.GWTShell
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".. 我正在尝试执行基于GWT 2.6.1的示例应用程序,当我点击app.gwt.xml并说“运行方式” - >“GWT托管模式应用程序”时,控制台立即打印出“错误:无法找到或加载主类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. 至于我收集的关于这个问题的答案,GWT编译器正在寻找gwt-dev-windows.jar,它不是GWT 2.6.1的一部分,我的classpath中也有gwt-dev.jar。
Can someone suggest me how to figure out this issue. 有人可以建议我如何找出这个问题。
GWTShell
was removed in GWT 2.5.1 . 在GWT 2.5.1中删除了 GWTShell
。 You should use com.google.gwt.dev.DevMode
instead as your main class. 您应该使用com.google.gwt.dev.DevMode
作为主类。 Please see Google Plugin for Eclipse's documentation for more information. 有关更多信息,请参阅Google Plugin for Eclipse的文档 。
The problem is that the Google Plugin for Eclipse fails to detect the version of GWT you're using and (incorrectly IMO) falls back to legacy mode (which could almost be called "legacy legacy" now that we have SuperDevMode). 问题是,Google Plugin for Eclipse无法检测到您正在使用的GWT版本(错误的IMO)会回退到传统模式(现在我们有SuperDevMode,这几乎可以称为“遗留旧版”)。
That was a known issue with 2.6.0 but 2.6.1 should have "fixed" it. 这是2.6.0的已知问题,但2.6.1应该“修复”它。 You might have to update your Google Plugin for Eclipse, or try manually changing the main class to com.google.gwt.dev.DevMode
. 您可能需要更新Google插件for Eclipse,或尝试手动将主类更改为com.google.gwt.dev.DevMode
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.