Tuesday, February 17, 2015

How do I make the GWT Compiler see other modules in Eclipse?

I'm using GWT 2.7 with Eclipse.  I have one Eclipse project, let's call it "foo" that has a bunch of server side code compiled into a GWT module.  I have another Eclipse project, let's call it "bar" that has a bunch of web app code compiled into a GWT module.  I need to reference the foo code in the bar code.

I added an "inherits" tag to the bar's gwt.xml module definition file.

I added the Eclipde project foo to the classpath of bar.

I added a project reference from bar to foo.

I've basically tried everything I can think off, but when I compile bar, I get errors like this:

Line 22: No source code is available for type com.xxx.yyy.Zzz; did you forget to inherit a required module?

I've also searched the web and this group.  I see some answers from 2009 that involve Maven (which I'm not using) and older versions of the GWT compiler, but nothing has solved my problem.

What am I missing?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment