This is just for closure.
Yes, I was using the JAR file on the client-side. So to use your own
JAR file it must include both .java and .class files. I rebuilt the
jar file to meet these conditions and added (inside the jar) a
module.gwt.xml file which contained the path to the classes I was
using in the JAR.
The app still couldn't use the JAR because the .java files used JAVA
libraries it could not translate into javascript.
For your reference, here is another on-going discussion on using
external JARs with GWT:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e91cf6274d4ef272#

I hope this helps.
James


On Jan 18, 9:29 pm, Sudeep S <[email protected]> wrote:
> forgot to ask,
>
> are u using this library in the client side or the server side.
> all that i told is applicable only if u are using it in the client side.
> on the server side u can use it like a normal jar
>
> On Tue, Jan 19, 2010 at 8:57 AM, Sudeep S <[email protected]> wrote:
> > gwt compiles your java to javascript so the source code should be present
> > in that captcha.jar
> > its not sufficient if it has only .class files.
> > also it should have a gwt module.xml.
>
> > hope this helps
>
> > thanks
> > Sudeep
> >   On Tue, Jan 19, 2010 at 1:44 AM, jfagh <[email protected]> wrote:
>
> >>  Hi Sudeep,
> >> ReCaptcha is just a Java library. I added its JAR file to the lib/
> >> folder and to the classpath.
> >> When reference methods from the library, the IDE doesn't complain but
> >> when I run the app it gives the error I listed above.
> >> I am not sure what you mean by: "gwt module dicatates that source code
> >> be present in the lib that is refererred."
> >> Thanks.
> >> James
>
> >> On Jan 18, 1:59 pm, Sudeep S <[email protected]> wrote:
> >> > is ReCaptcha a gwt library or a simple java library.
> >> > gwt module dicatates that source code be present in the lib that
> >> > is refererred.
>
> >> > On Tue, Jan 19, 2010 at 1:21 AM, jfagh <[email protected]> wrote:
> >> > > I am trying to integrate the opensource ReCaptcha on my GWT 2.0 app. I
> >> > > followed the instructions given at:
> >> > >http://wiki.recaptcha.net/index.php/Overview#Java.2FJSP
> >> > > And just like any added module, I added its JAR file to the lib
> >> > > directory and to the classpath.
> >> > > When I try to run the app with a new ReCaptcha object I get a run-time
> >> > > error:
> >> > >  [ERROR]  No source code is available for type
> >> > > net.tanesha.recaptcha.ReCaptcha; did you forget to inherit a required
> >> > > module?
> >> > > I am not sure if I am supposed to modify the app.gwt.xml or is it just
> >> > > that the ReCaptcha java library uses some methods that cannot be
> >> > > "translated" into js by the GWT compiler.
> >> > > Please help if you have any ideas.
> >> > > Thank you.
> >> > > James
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> Groups
> >> > > "Google Web Toolkit" group.
> >> > > To post to this group, send email to
> >> [email protected].
> >> > > To unsubscribe from this group, send email to
> >> > > [email protected]<google-web-toolkit%[email protected]>
> >> <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]>
>
> >>  > > .
> >> > > 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 [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-web-toolkit%[email protected]>.
>
> >> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to