Is there a way to include arbitrary .java files into my gwt module?

20 views
Skip to first unread message

Stephen Buergler

unread,
Nov 14, 2011, 8:50:06 PM11/14/11
to google-we...@googlegroups.com
I want to use java files in the libraries that I am using with my gwt module. Is there a way to include them without copying them into an emul directory and using <super-source>? How does gwt-user.jar get included? I am using Eclipse.

Hilco Wijbenga

unread,
Nov 14, 2011, 10:06:51 PM11/14/11
to google-we...@googlegroups.com

I have not needed this so far, so no guarantees, but ... did you try
just including the supporting code on the classpath? You'll need to
include the source code as well. I'm guessing you'll probably need to
create a separate GWT module for such code but that would be easy
enough, I suppose.

If the code you want to include uses features that are not available
in GWT (such as Thread or ClassLoader) then, of course, things become
much harder (if not impossible). That's where super-source *might* be
helpful. But at that point you're probably better off trying a
different approach altogether.

Reply all
Reply to author
Forward
0 new messages