I haven't been able to run Eclipse or GWT on my Lion MacbookAir. I tried JDK 1.6.0_31 for Lion and OpenJDK 7.
When I try to build the GWT starter project I get the error:
[java] java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
[java] at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:411) ....
This basically means that java claims the class org.eclipse.jdt.internal.compiler.impl.CompilerOptions doesn't have the field reportUnusedDeclaredThrownExceptionIncludeDocCommentReference which is not true.
I pulled this class both from gwt-dev.jar and from Eclipse's org.eclipse.jdt.core jar and listed its members with javap and javap didn't show that field. I copied those exact jars to my desktop (that has Snow Leopard) and run the same javap command and there I see the fields that don't show up on Lion.
To reproduce on Lion, download Eclipse 3.7. From the command line run:
javap -classpath <ECLIPSE_HOME>/plugins/org.eclipse.jdt.core_3*.jar org.eclipse.jdt.internal.compiler.impl.CompilerOptions | grep reportU
If you do not see reportUnusedDeclaredThrownExceptionIncludeDocCommentReference in the output you're seeing the issue. Thanks
When I try to build the GWT starter project I get the error:
[java] java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
[java] at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:411) ....
This basically means that java claims the class org.eclipse.jdt.internal.compiler.impl.CompilerOptions doesn't have the field reportUnusedDeclaredThrownExceptionIncludeDocCommentReference which is not true.
I pulled this class both from gwt-dev.jar and from Eclipse's org.eclipse.jdt.core jar and listed its members with javap and javap didn't show that field. I copied those exact jars to my desktop (that has Snow Leopard) and run the same javap command and there I see the fields that don't show up on Lion.
To reproduce on Lion, download Eclipse 3.7. From the command line run:
javap -classpath <ECLIPSE_HOME>/plugins/org.eclipse.jdt.core_3*.jar org.eclipse.jdt.internal.compiler.impl.CompilerOptions | grep reportU
If you do not see reportUnusedDeclaredThrownExceptionIncludeDocCommentReference in the output you're seeing the issue. Thanks