Issue on OS X 10.7 java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
114 views
Skip to first unread message
Adrian
unread,
Apr 10, 2012, 12:02:03 AM4/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
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.
rickyw
unread,
May 2, 2012, 3:29:10 PM5/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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.