简体   繁体   English

GWT 2.6.1错误:无法找到或加载主类com.google.gwt.dev.GWTShell

[英]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.

相关问题 错误:编译GWT项目时无法找到或加载主类com.google.gwt.dev.Compiler - Error: Could not find or load main class com.google.gwt.dev.Compiler while compiling a GWT project 调试gwt代码时如何自动将com.google.gwt.dev.DevMode指定为主要类 - How to specify com.google.gwt.dev.DevMode as the main class automatically when debug gwt code 在线程“主”中获取异常java.lang.VerifyError:类com.google.gwt.dev.HostedModeBase $ ArgHandlerNoServerFlag - Getting Exception in thread “main” java.lang.VerifyError: class com.google.gwt.dev.HostedModeBase$ArgHandlerNoServerFlag GWT / Eclipse:ClassNotFoundException com / google / gwt / dev / Compiler - GWT/ Eclipse: ClassNotFoundException com/google/gwt/dev/Compiler GWT JUnit:com.google.gwt.dev.jjs.InternalCompilerException:访问期间发生意外错误 - GWT JUnit: com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit 错误:找不到或加载主类com.lara.CoffeeTest - Error: Could not find or load main class com.lara.CoffeeTest 无法加载类“ com.google.gwt.validation.rebind.GwtSpecificValidatorGenerator” - Unable to load class 'com.google.gwt.validation.rebind.GwtSpecificValidatorGenerator' 编译时GWT 2.6.1中的数字转换错误 - Error of number conversion in GWT 2.6.1 when compiling 编译器错误 - “错误:无法找到或加载主类 com.sun.tools.javac.Main” - Compiler Error - 'Error: Could not find or load main class com.sun.tools.javac.Main' 错误:找不到或加载主类Main - Error: Could not find or load main class Main
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM