Re: GWT compiler .java files

2012-10-26 Thread Thomas Broyer

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.

-- 
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/-/a2PikBsDTaEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT compiler .java files

2012-10-25 Thread Ben Cuthbert
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT compiler .java files

2012-10-25 Thread Thiago Born
You need to include the source code too inside the Jar

On Thu, Oct 25, 2012 at 12:53 PM, Ben Cuthbert
ben.cuthb...@celer-tech.comwrote:

 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-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.