Sunday, May 3, 2009

GWT+Eclipse: NoSuchMethodError

If you get this error message while compiling a GWT module in Eclipse, go to the project Build Path and change the Order/Export tab to have the GWT-SDK module at the top.

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.genericType()
Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
at com.google.gwt.dev.jdt.TypeRefVisitor.maybeDispatch(TypeRefVisitor.java:178)
at com.google.gwt.dev.jdt.TypeRefVisitor.endVisit(TypeRefVisitor.java:101)

7 comments:

Chris Lowe said...

Just been stung by this - thanks for posting!

JohnC said...

Thanks, fixed my problem!

Anonymous said...

Wow, this fixed my headache. Thanks !!!

Anonymous said...

thanks, just what I needed.

Anonymous said...

Thank you so much. This fixed my problem.

Anonymous said...

This at least got me to the next step, after many other web pages did not. (Also I had to restart eclipse.) I'm now getting a different error, I'll track that one down separately.

Unknown said...

Wow... very simple but perfect solution.Thank you a lot!