2011-05-14 134 views
0

我已经安装了GWT4NB插件的NetBeans。我的代码可以编译并与生产模式一起使用。但是当我尝试在Netbeans中启动开发模式又名托管模式时,GWTShell窗口无法加载。让这个工作对调试非常有用。这是我在控制台的错误:GWT - Netbeans无法启动开发模式

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: 

这个问题似乎是未知样式的参数。我试着在gwt 2.0部分的build-gwt.xml中更改这个参数,没有改变。为什么isnt gwt 2.1不在xml配置文件中?

回答

1

我有相同的问题,并通过将gwt版本设置为'2.0'来手动修复它,即使我实际上在2.2上。

这个问题是由于GWT4NB没有使用你正在使用的GWT版本,因此试图使用GWT 1.5,这与现代版本很不相同。

+0

如何手动修复它?谢谢。 – guiomie 2011-05-15 13:12:44

+0

我在gwt.properties文件中将gwt.version = 2.1切换到gwt.version = 2.0。不知道如果我自己更改为2.1,但现在它适用于2.0已设置。 – guiomie 2011-05-15 13:28:13

+0

适合我,谢谢!注意:项目 - >右键单击GWT项目 - >属性 - > Google Web Toolkit - > GWT版本 - >更改为2.0(或者您使用的任何版本; 2.0与插件目前的版本一样高) – Bane 2011-09-27 21:17:26