简体   繁体   English

使用GWT和Eclipse Juno 4.2“未指定主类型”

[英]“Main type not specified” with GWT and Eclipse Juno 4.2

After upgrading to Eclipse Juno 4.2 (through a fresh install) and installing GWT Plugin (3.0.0v201206271046-rel-r42) from http://dl.google.com/eclipse/plugin/4.2 , I can't start my GWT application. 升级到Eclipse Juno 4.2(通过全新安装)并从http://dl.google.com/eclipse/plugin/4.2安装GWT插件(3.0.0v201206271046-rel-r42)后,我无法启动我的GWT应用程序。

I configure the GWT nature of my project just like with Eclipse 3.7 but when I run my application, after selecting my entry point, the start fails with: "Main type not specified" 我像Eclipse 3.7一样配置项目的GWT性质但是当我运行我的应用程序时,在选择我的入口点后,启动失败:“未指定主类型”

It appears gwt-dev.jar is not included. 看来gwt-dev.jar不包括在内。 GWT referenced library are not added in my project. 我的项目中没有添加GWT引用的库。 So I needed to reselect GWT 2.4 in my project configuration. 所以我需要在项目配置中重新选择GWT 2.4。 Then, gwt-dev.jar is added correctly in the "Referenced Library" section. 然后,在“Referenced Library”部分中正确添加gwt-dev.jar。 But I still get the same error at startup. 但我在启动时仍然遇到同样的错误。

Any idea? 任何的想法?

通过在运行配置的“主要”选项卡上的“主类”字段中明确添加“com.google.gwt.dev.DevMode”来实现该方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM