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 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.

Reply via email to