GWT intention error, but build works

Using the ImageViewer code in a struts application, I'm getting errors in the code editor for all of the GWT classes.

For example, on "extends Image", the error is
"Class com.google.gwt.user.client.ui.Image" is not presented in the JRE Emulation Library so it cannot be used in client code"

This code is under src/client, and src is listed as a souce content root. gwt-servlet and gwt-user are being deployed. My GWT config is set to the 1.2.2 directory. My ImageViewer.gwt.xml file is under src.

This code compiles and runs under JBoss except for an issue I'm troubleshooting that does not show the larger image.

Is this a GWT plugin issue or something to do with my configuration?

3 comments
Comment actions Permalink

I've attached a screenshot of the error I'm getting.

Anyone else getting these errors?



Attachment(s):
gwt intention error.JPG
0
Comment actions Permalink

Yes I had this one but I don't understand what is it... I turn off inspection for this rule and it works fine

0
Avatar
Nikolay Chashnikov
Comment actions Permalink

Is "gwt-user.jar" added to dependencies of your module?

0

Please sign in to leave a comment.