我是GWT的初学者,并尝试从http://www.vogella.com/tutorials/GWT/article.html运行示例HelloWorld程序。我为Eclipse Kepler 4.3安装了GWT插件并下载了GWT SDK 2.3。在eclipse中配置SDK时,我收到错误 “gwt-codeserver.jar缺失” 所以我下载了“gwt-codserver-2.5”jar并将其复制到SDK文件夹,它修复了丢失的jar问题。
然后我通过右键单击项目并选择Run As - >来运行我的应用程序。 “Web应用程序”。现在,我没有在开发模式选项卡中获取网址,而是显示 “开发模式正在加载....”和“等待启动网址” 消息,之后没有任何事情发生在控制台我收到消息。 请帮助解决此问题。
Unknown Argument: -superDevMode
DevMode [-[no]startServer] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] [-sourceLevel [auto, 1.6, 1.7]] module[s]
where
-[no]startServer Starts a servlet container serving the directory specified by the -war flag. (defaults to ON)
-port Specifies the TCP port for the embedded web server (defaults to 8888)
-whitelist Allows the user to browse URLs that match the specified regexes (comma or space separated)
-blacklist Prevents the user browsing URLs that match the specified regexes (comma or space separated)
-logdir Logs to a file in the given directory, as well as graphically
-logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
-gen Debugging: causes normally-transient generated types to be saved in the specified directory
-bindAddress Specifies the bind address for the code server and web server (defaults to 127.0.0.1)
-codeServerPort Specifies the TCP port for the code server (defaults to 9997)
-server Specify a different embedded web server to run (must implement ServletContainerLauncher)
-startupUrl Automatically launches the specified URL
-war The directory into which deployable output files will be written (defaults to 'war')
-deploy The directory into which deployable but not servable output files will be written (defaults to 'WEB-INF/deploy' under the -war directory/jar, and may be the same as the -extra directory/jar)
-extra The directory into which extra files, not intended for deployment, will be written
-workDir The compiler's working directory for internal use (must be writeable; defaults to a system temp dir)
-sourceLevel Specifies Java source level (defaults to auto:1.7)
and
module[s] Specifies the name(s) of the module(s) to host
答案 0 :(得分:3)
这两个错误(缺少gwt-codeserver和未知参数)暗示Eclipse的Google插件没有正确检测您正在使用的GWT SDK的版本。
GWT 2.3现在已经很老了,所以我建议尝试使用GWT 2.7。当您从GWT开始时,使用SuperDevMode开始比使用最近的浏览器使DevMode工作失败的日子更好。注意:这意味着您将在浏览器内调试,而不是从IDE调试(除非您从https://sdbg.github.io安装SDBG插件)