Re: Using the ReCaptcha Java API with GWT 2.0

2010-01-18 Thread Sudeep S
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 jfa...@gmail.com 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 google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Using the ReCaptcha Java API with GWT 2.0

2010-01-18 Thread jfagh
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 sudee...@gmail.com 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 jfa...@gmail.com 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 google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Using the ReCaptcha Java API with GWT 2.0

2010-01-18 Thread Sudeep S
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 jfa...@gmail.com 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 sudee...@gmail.com 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 jfa...@gmail.com 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
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Using the ReCaptcha Java API with GWT 2.0

2010-01-18 Thread Sudeep S
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 sudee...@gmail.com 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 jfa...@gmail.com 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 sudee...@gmail.com 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 jfa...@gmail.com 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
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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.