GWT in 6103: JRE Emulation Library inspection problem

Don't know if I missed some setting somewhere, but starting with the 6103 release, I get massive number of errors from the inspection "Classes not from JRE Emulation Library in client code". Essentially all non-JRE emulation library GWT client classes cause this error (e.g. Widget, HorizontalPanel, RemoteService, etc.)

/Kris

3 comments

Hello Kris,

Hmm... Very strange.
Please press Ctrl+B on a higlighted reference (e.g. RemoteService). IDEA
should jump to RemoteService class. Then press Alt+F1, 1 to select this class
in the project view and check whether it is located under gwt-user.jar and
gwt-user.jar contains User.gwt.xml file in com/google/gwt/user package.

Don't know if I missed some setting somewhere, but starting with the
6103 release, I get massive number of errors from the inspection
"Classes not from JRE Emulation Library in client code". Essentially
all non-JRE emulation library GWT client classes cause this error
(e.g. Widget, HorizontalPanel, RemoteService, etc.)

/Kris



0

Thanks for the quick response!

Aha!

Because the gwt-servlet.jar need to be added to the deployement, I added this jar to the global GWT library (which gets copied the exploded directory). I see now that causes this problem.

I will obviously need to have a separate "GWT runtime library" instead, and set that to "copy files" in the web module tab. Unless you have a better option?

0

Hello Kris,

No, I haven't.
Please make sure that "gwt-user.jar" is above "gwt-servlet.jar" in Module
Settings | Dependencies tab.

Thanks for the quick response!

Aha!

Because the gwt-servlet.jar need to be added to the deployement, I
added this jar to the global GWT library (which gets copied the
exploded directory). I see now that causes this problem.

I will obviously need to have a separate "GWT runtime library"
instead, and set that to "copy files" in the web module tab. Unless
you have a better option?



0

Please sign in to leave a comment.