You must have a version of JDT (aka ECJ) earlier in the classpath, that conflicts with the one shipped within gwt-dev. It's very unlikely that this dependency is used for client-side code (in generators), so the best way is to make sure you only include client-side dependencies in your class path when invoking GWT (the Compiler, DevMode, SuperDevMode, or unit tests). If that's not possible (it's always possible, so let's rather say: if that's not easy), then move gwt-dev at the very beginning of your classpath.
On Thursday, February 13, 2014 1:00:08 PM UTC+1, Arshad Shaikh wrote: > > Hi, > > I am facing 'Unexpected internal compiler error' while creating GWT Build. > Tried changing the order of class paths of jars but didn't work. > I have upgraded GWT from 3.1 to 4.0 and using Tomcat. > > Can someone please advise on this issue. > > ----------------------------------------------------------------------------- > Log > ----------------------------------------------------------------------------- > *[ERROR] Unexpected internal compiler error* > * [java] java.lang.NoSuchFieldError: warningThreshold* > * [java] at > com.google.gwt.dev.javac.JdtCompiler$1.<init>(JdtCompiler.java:505)* > * [java] at > com.google.gwt.dev.javac.JdtCompiler.getStandardCompilerOptions(JdtCompiler.java:503)* > * [java] at > com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:533)* > * [java] at > com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:878)* > * [java] at > com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:284)* > * [java] at > com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:511)* > * [java] at > com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:434)* > * [java] at > com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:420)* > * [java] at > com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:485)* > * [java] at > com.google.gwt.dev.Precompile.precompile(Precompile.java:241)* > * [java] at > com.google.gwt.dev.Precompile.precompile(Precompile.java:223)* > * [java] at > com.google.gwt.dev.Precompile.precompile(Precompile.java:139)* > * [java] at com.google.gwt.dev.Compiler.run(Compiler.java:167)* > * [java] at com.google.gwt.dev.Compiler.run(Compiler.java:132)* > * [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:99)* > * [java] at > com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)* > * [java] at > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)* > * [java] at com.google.gwt.dev.Compiler.main(Compiler.java:106)* > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Thanks, > Arshad > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
