0

GWT4NBプラグインがインストールされたNetBeansがあります。私のコードはコンパイルでき、本番モードで動作します。しかし、Netbeansで開発モード(別名ホストモード)を起動しようとすると、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:

問題は未知のスタイルの議論のようです。build-gwt.xmlのgwt2.0セクションでこの引数を変更してみましたが、変更はありません。gwt 2.1がxml設定ファイルにもないのはなぜですか?

4

1 に答える 1

1

私は同じ問題を抱えており、実際に2.2を使用している場合でも、gwtバージョンを「2.0」に設定することで再起動のたびに手動で修正します。

この問題は、GWT4NBが使用しているGWTのバージョンを理解していないため、GWT 1.5を試してみることが原因で発生します。これは、最新のものとはかなり異なります。

于 2011-05-15T09:27:57.797 に答える