Thursday, May 11, 2017

Can't get JsInterop to work in Eclipse

Hi,

I'm using GWT 2.8.0 in Eclipse Neon.

I have a Java class, com.xyz.shared.MyClass, 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?

/NxS

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment