Thursday, May 11, 2017

Can't get JsInterop to work in Eclipse


I'm using GWT 2.8.0 in Eclipse Neon.

I have a Java class,, that I've marked as @JsType

When I select "Run As | GWT Development Mode with Jetty" in Eclipse, I see that though the html page comes up alright, I cannot access this class from the browser console - I get the error:

Uncaught ReferenceError: com is not defined

I tried specifying the -generateJsInteropExports option in 'GWT | Compile | Advanced | Additional Compiler Arguments', but it made no difference.

What am I missing?


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment