首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GWT - Netbeans无法启动开发模式

GWT - Netbeans无法启动开发模式
EN

Stack Overflow用户
提问于 2011-05-15 04:26:33
回答 1查看 2.1K关注 0票数 0

我已经安装了带有GWT4NB插件的netbeans。我的代码可以编译并在生产模式下工作。但是,当我尝试在Netbeans中启动开发模式,也就是托管模式时,GWTShell窗口并没有加载。让它正常工作将对调试非常有用。下面是我在控制台中的错误:

代码语言:javascript
复制
GWT4NB https://gwt4nb.dev.java.net
GWT installation directory: C:\Users\Guillaume\.netbeans\6.9\framework\gwt-2.1.0
init:
debug-connect-gwt-shell-hosted-15:
Unknown argument: -style
Google Web Toolkit 2.1.0
GWTShell [-noserver] [-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"] [-out dir] [url]

where 
  -noserver        Prevents the embedded web server from running
  -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)
  -out             The directory to write output files into (defaults to current)
and 
  url              Automatically launches the specified URL
Java Result: -1
init:

问题似乎出在未知的-style参数上。我尝试在gwt2.0部分下的build-gwt.xml中更改此参数,但没有更改。为什么gwt 2.1不在xml配置文件中?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-05-15 17:27:58

我也有同样的问题,并在每次重启时手动修复它,将gwt版本设置为'2.0‘,即使我实际上是在2.2版本。

这个问题是因为GWT4NB不理解你正在使用的GWT1.5的版本,所以尝试使用GWT1.5,这与现在的版本有很大的不同。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6004598

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档