Re: GWT compiler .java files

39 views
Skip to first unread message

Thiago Born

unread,
Oct 25, 2012, 11:41:42 AM10/25/12
to google-we...@googlegroups.com
You need to include the source code too inside the Jar 

On Thu, Oct 25, 2012 at 12:53 PM, Ben Cuthbert <ben.cu...@celer-tech.com> wrote:
All

I when I add my modules .java files into the jar and pass it to my application the compiler works. But when I put the .java files of the module into a -sources.jar and then add that to the classpath of my application the compile does not work, and I get the following error.

ERROR] Line 48: No source code is available for type

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Xm-oeMSHokoJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Oct 26, 2012, 4:39:45 AM10/26/12
to google-we...@googlegroups.com

On Thursday, October 25, 2012 4:53:28 PM UTC+2, Ben Cuthbert wrote:
All

I when I add my modules .java files into the jar and pass it to my application the compiler works. But when I put the .java files of the module into a -sources.jar and then add that to the classpath of my application the compile does not work, and I get the following error.

ERROR] Line 48: No source code is available for type

It *should* work, and actually, it works for many of us (particularly those using Maven). It also works for javax.validation-1.0.0.jar and javax.validation-1.0.0-sources.jar from the GWT SDK bundle for instance.

Check the layout of your -sources.jar. Running "jar xf foo.jar" and "jar xf foo-sources.jar" in the same folder should put the *.java next to their *.class counterparts. If that isn't the case, then you have a problem with your -sources.jar.
Reply all
Reply to author
Forward
0 new messages