Error when running GWT project: Unknown argument: -style

Hi,

I'm using IntelliJ 8.1.2.  I also have GWT 2.4 and Mavne 3.0.3 installed.  I'm trying to run a Maven-GWT project, but I keep getting this error when I go to Run -> Run.  My run configuration is simple, but I'm getting an error unrelated to anything in my configuration.  The below error occurs:


"C:\Program Files\Java\jdk1.6.0_27\bin\java" -Xmx256m -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 8.1.2\bin" -Dfile.encoding=windows-1252 -classpath "\gwt-dev-windows.jar;C:\Documents and Settings\E18538\workspace\pplus_iteration1\target\generated-sources\annotations;C:\Documents and Settings\E18538\workspace\pplus_iteration1\src\main\resources;C:\Documents and Settings\E18538\workspace\pplus_iteration1\src\main\java;C:\Program Files\Java\jdk1.6.0_27\jre\lib\alt-rt.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\alt-string.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_27\jre\lib\ext\sunpkcs11.jar;C:\Documents and Settings\E18538\workspace\pplus_iteration1\target\myco-productplus-web\WEB-INF\classes;C:\Documents and Settings\E18538\.m2\repository\com\google\gwt\gwt-servlet\2.4.0\gwt-servlet-2.4.0.jar;C:\Documents and Settings\E18538\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;C:\Documents and Settings\E18538\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Documents and Settings\E18538\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Documents and Settings\E18538\.m2\repository\com\google\gwt\gwt-dev\2.4.0\gwt-dev-2.4.0.jar;C:\Documents and Settings\E18538\.m2\repository\junit\junit\4.8.1\junit-4.8.1.jar;C:\Documents and Settings\E18538\.m2\repository\org\easymock\easymock\3.0\easymock-3.0.jar;C:\Documents and Settings\E18538\.m2\repository\cglib\cglib-nodep\2.2\cglib-nodep-2.2.jar;C:\Documents and Settings\E18538\.m2\repository\org\objenesis\objenesis\1.2\objenesis-1.2.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\commons\commons-lang3\3.0.1\commons-lang3-3.0.1.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;C:\Documents and Settings\E18538\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Documents and Settings\E18538\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;C:\Documents and Settings\E18538\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Documents and Settings\E18538\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\commons\commons-io\1.3.2\commons-io-1.3.2.jar;C:\Documents and Settings\E18538\.m2\repository\javanettasks\httpunit\1.7\httpunit-1.7.jar;C:\Documents and Settings\E18538\.m2\repository\nekohtml\nekohtml\0.9.5\nekohtml-0.9.5.jar;C:\Documents and Settings\E18538\.m2\repository\xerces\xercesImpl\2.4.0\xercesImpl-2.4.0.jar;C:\Documents and Settings\E18538\.m2\repository\jtidy\jtidy\4aug2000r7-dev\jtidy-4aug2000r7-dev.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-java\2.6.0\selenium-java-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-android-driver\2.6.0\selenium-android-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-remote-driver\2.6.0\selenium-remote-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\json\json\20080701\json-20080701.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-api\2.6.0\selenium-api-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\com\google\guava\guava\r09\guava-r09.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\httpcomponents\httpclient\4.1.2\httpclient-4.1.2.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\httpcomponents\httpcore\4.1.2\httpcore-4.1.2.jar;C:\Documents and Settings\E18538\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Documents and Settings\E18538\.m2\repository\commons-codec\commons-codec\1.4\commons-codec-1.4.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\2.6.0\selenium-chrome-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-htmlunit-driver\2.6.0\selenium-htmlunit-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\net\sourceforge\htmlunit\htmlunit\2.9\htmlunit-2.9.jar;C:\Documents and Settings\E18538\.m2\repository\xalan\xalan\2.7.1\xalan-2.7.1.jar;C:\Documents and Settings\E18538\.m2\repository\xalan\serializer\2.7.1\serializer-2.7.1.jar;C:\Documents and Settings\E18538\.m2\repository\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;C:\Documents and Settings\E18538\.m2\repository\org\apache\httpcomponents\httpmime\4.1.2\httpmime-4.1.2.jar;C:\Documents and Settings\E18538\.m2\repository\net\sourceforge\htmlunit\htmlunit-core-js\2.9\htmlunit-core-js-2.9.jar;C:\Documents and Settings\E18538\.m2\repository\net\sourceforge\nekohtml\nekohtml\1.9.15\nekohtml-1.9.15.jar;C:\Documents and Settings\E18538\.m2\repository\net\sourceforge\cssparser\cssparser\0.9.5\cssparser-0.9.5.jar;C:\Documents and Settings\E18538\.m2\repository\org\w3c\css\sac\1.3\sac-1.3.jar;C:\Documents and Settings\E18538\.m2\repository\commons-io\commons-io\2.0.1\commons-io-2.0.1.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-firefox-driver\2.6.0\selenium-firefox-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-ie-driver\2.6.0\selenium-ie-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\net\java\dev\jna\jna\3.3.0\jna-3.3.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-iphone-driver\2.6.0\selenium-iphone-driver-2.6.0.jar;C:\Documents and Settings\E18538\.m2\repository\org\seleniumhq\selenium\selenium-support\2.6.0\selenium-support-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 8.1.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.google.gwt.dev.GWTShell -style DETAILED -out "C:\Documents and Settings\E18538\.IntelliJIdea8x\system\gwt\myco-productplus-web.myco-productplus-webfbf59cfa\myco-productplus-web.dd1286aa\run\www" -gen "C:\Documents and Settings\E18538\.IntelliJIdea8x\system\gwt\myco-productplus-web.myco-productplus-webfbf59cfa\myco-productplus-web.dd1286aa\run\gen" "C:\Documents and Settings\E18538\workspace\pplus_iteration1\src\main\webapp\productplus.html"
Unknown argument: -style
Google Web Toolkit 2.4.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

Process finished with exit code -1

1 comment

Hello,

IDEA 8.1.4 doesn't support GWT 2.4, you need to upgrade to IDEA 10.5.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.