I have a GWT application, foo, that imports a jar (bar) I previously made that is solely Java. In the jar, I have a folder src/ in the top level that contains all of the source code. Yet, when I try to build foo, I get the error:
[java] [ERROR] Line 185: No source code is available for type bar; did you forget to inherit a required module?
Since bar is not a GWT application, I don't know what to do. I know using an "inherit" tag would help in foo's foo.gwt.xml, but bar isn't GWT. What to do to get it to work? I've scoured the web and this forum for a solution but have yet to find anything. Is there a way to tell the GWT compilier that the source is located in bar.jar's src/ folder?
I'm a little rusty here but I will do my best:
BTW, GWT official docs discuss this pretty well, check it.
posted 10 years ago
Thanks for your response!
Anyways, I'm currently trying to just send a RPC to a server where bar will be used, circumventing the need for compiling it in client, but this is rather tedious.
Does anyone know if my wished-for method is possible?