I have seen the same error. I am running Windows, but apparently there was another CompilerOptions class that was conflicting with the class in gwt-dev. I moved gwt-dev higher on the classpath in my eclipse launch configuration so that it would find the gwt-dev CompilerOptions class first, and the error went away.
On Monday, April 9, 2012 10:02:03 PM UTC-6, Adrian wrote: > > I'm trying to learn GWT and I can't get the "hello world"-type project > to compile. > > My system: OS X, Lion > Java: I tried both the JDK 1.6_31 provided by Apple and OpenJDK 1.7.0- > u6-b01 > > * I downloaded GWT 2.4.0 > * Run "webAppCreator -out ~/MyWebApp com.example.MyWebApp" > * Then cd to ~/MyWebApp and did a "ant build" and I got this: > gwtc: > [java] Compiling module com.example.MyWebApp > [java] [ERROR] Unexpected internal compiler error > [java] java.lang.NoSuchFieldError: > reportUnusedDeclaredThrownExceptionIncludeDocCommentReference > [java] at > com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java: > 411) > [java] at com.google.gwt.dev.javac.JdtCompiler > $CompilerImpl.<init>(JdtCompiler.java:228) > [java] at > com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:700) > [java] at com.google.gwt.dev.javac.CompilationStateBuilder > $CompileMoreLater.compile(CompilationStateBuilder.java:235) > [java] at > com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java: > > > 447) > ... > I dug in and I think the class loader loads CompilerOptions from > GWT_HOME/gwt-dev.jar. I extracted CompilerOptions.class from gwt- > dev.jar and looked at the class members with javap and > reportUnusedDeclaredThrownExceptionIncludeDocCommentReference is not > listed. I run "javap CompilerOptions.class" for the exact same class > file on Linux and it shows > reportUnusedDeclaredThrownExceptionIncludeDocCommentReference fine. > > How do I run the skeleton web app? It doesn't look like a GWT issue > but I hope another GWT user has seen this and knows a solution. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H5biT0JThdIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
