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.
