Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding

2011-01-13 Thread Thomas Broyer
You cannot use the *.client.* classes on the server (there might be a few 
exceptions, but it's the general idea that things that can run server-side 
are in a *.shared.* or *.server.* package). This includes the URL class.
The UnsatisfiedLinkError is due to the notation used by GWT for JSNI: they 
are 'native' methods (i.e. things a JVM expects to find in a DLL or 
equivalent).

In your case, have a look at the java.net.URLEncoder class.

-- 
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.



Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding

2011-01-13 Thread Y2i
... or HttpURLConnection

http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html

-- 
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.



Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding

2011-01-13 Thread Ananda Matthur
Oh ok. Got the problem. Thanks a lot guys :)

On 14 January 2011 04:24, Y2i yur...@gmail.com wrote:

 ... or HttpURLConnection


 http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html

 --
 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.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-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.