Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java GWT-Netbeans无法启动开发模式_Java_Gwt_Netbeans_Netbeans Plugins - Fatal编程技术网

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

Java GWT-Netbeans无法启动开发模式,java,gwt,netbeans,netbeans-plugins,Java,Gwt,Netbeans,Netbeans Plugins,我安装了带有GWT4NB插件的netbeans。我的代码可以编译并使用生产模式。但是当我尝试在Netbeans中启动dev模式(又称托管模式)时,GWTShell窗口不会加载。让它工作起来对调试非常有用。以下是我在控制台中的错误: GWT4NB https://gwt4nb.dev.java.net GWT installation directory: C:\Users\Guillaume\.netbeans\6.9\framework\gwt-2.1.0 init: debug-connec

我安装了带有GWT4NB插件的netbeans。我的代码可以编译并使用生产模式。但是当我尝试在Netbeans中启动dev模式(又称托管模式)时,GWTShell窗口不会加载。让它工作起来对调试非常有用。以下是我在控制台中的错误:

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:

问题似乎是未知风格的论点。我尝试在GWT2.0部分的build-gwt.xml中更改此参数,没有更改。为什么gwt 2.1不在xml配置文件中?

我也有同样的问题,每次重新启动时都会手动将gwt版本设置为“2.0”,即使我实际使用的是2.2


问题的原因是GWT4NB不理解您正在使用的GWT版本,因此尝试使用GWT1.5,这与现代版本非常不同

我在gwt.properties文件中将gwt.version=2.1切换为gwt.version=2.0。我不确定我自己是否把它改成了2.1,但现在它可以在2.0的设置下工作。对我有用,谢谢!注意:项目->右键单击GWT项目->属性->Google Web Toolkit->GWT版本->更改为2.0(或您正在使用的任何版本;2.0与插件当前的版本一样高)