The library you are trying to use is intended for running in a java
VM, not a browser's javascript engine.  You need either a javascript
library to wrap with JSNI, or a java library that meets the
requirements below.  Google openid gwt and you'll see how people have
been able to use openid with gwt.

The GWT java->javascript compiler used to create client browser code
does not translate any arbitrary Java library for you.  For one, it is
limited to emulating a subset of the java JRE, so any library may only
use that subset of java JRE functionality.  For two, it works on the
java source code, so any library you expect to use on the client side
must be packaged to include its source.  There are plenty of libraries
people have packaged for use on the GWT client side, but they are
packaged using GWT's packaging standard with an xml description file,
must include the source, and use the restricted subset of the JRE.

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsCompatibility.html

On Apr 26, 12:50 am, balbayrak <[email protected]> wrote:
> hi everyone
>
> i working on GXT and OpenID
>
> i have *.jar files. i want to use this jars. so i put in my project as
> built path. when i write
> import org.openid4java.*; its doest give error message
> but when i run my application its give errors this like
>
> i takes same error again i want to use openid4java
> i put *.jar about openid and i give it as built path i  writed
>
> dene6.java
>
>     import org.openid4java.message.AuthRequest;
>     import com.extjs.gxt.ui.client.widget.form.TextField;
>     import com.google.gwt.core.client.EntryPoint;
>     public class Dene6 implements EntryPoint {
>         public void onModuleLoad() {
>         AuthRequest as;
>                 TextField ass = new TextField();
>                 RootPanel.get().add(ass);}}
>
> this is my dene6.gwt.xml
>
>         <?xml version="1.0" encoding="UTF-8"?>
>         <module rename-to='dene6'>
>           <inherits name='com.google.gwt.user.User'/>
>         <inherits name='com.extjs.gxt.ui.GXT'></inherits>
>           <inherits name='com.google.gwt.user.theme.standard.Standard'/
>
>           <entry-point class='dene.client.Dene6'/>
>           <source path='client'/>
>           <source path='shared'/>
>     </module>
> when onModuleLoad() start
> its give
>
>     16:56:13.622 [DEBUG] [dene6] Validating newly compiled units
>     16:56:13.628 [ERROR] [dene6] Errors in 'file:/C:/Users/BNYMN/
> workspace/dene6/src/dene/client/Dene6.java'
>     16:56:13.654 [ERROR] [dene6] Line 31: No source code is available
> for type org.openid4java.message.AuthRequest; did you forget to
> inherit a required module?
>     16:56:15.454 [TRACE] [dene6] Finding entry point classes
>     16:56:15.459 [ERROR] [dene6] Unable to find type
> 'dene.client.Dene6'
>     16:56:15.476 [ERROR] [dene6] Hint: Previous compiler errors may
> have made this type unavailable
>     16:56:15.495 [ERROR] [dene6] Hint: Check the inheritance chain
> from your module; it may not be inheriting a required module or a
> module may not be adding its source path entries properly
>     16:56:15.514 [ERROR] [dene6] Failed to load module 'dene6' from
> user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
> 1.9.2.3) Gecko/20100401 Firefox/3.6.3' at 127.0.0.1:53236
>
> can someone help me pls?i need to help very much
>
> i tried to write my owner java files but i takes about java.net.URL
> should i find all files of .java

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