Short: no

Long: because GWT code is designed to run under GWT-Shell or as Js
compiled code, it's unlikely to be run under a normal java thread.
Are you trying to make a RCP call under basic java code ? Try to make
your own launcher or your own implementation of a Async interfaces
with a classic thread pool or whatever...




On 21 oct, 13:05, "salvatore cospito" <[EMAIL PROTECTED]>
wrote:
> Ok ,
> i have to do a java project including GWT libraries,
> I HAVE READ THE DOCUMENTATION , i have downloaded 1.5 release
> and i have done some programs!!!!
> Now i would want to know if is possible to use the part of code which is in
> onModuleLoad() in
> a main method of another java project.
> In other word I've done GWT project, i've copied the code whis is in
> onModuleLoad method and i've pasted
> that in main method of another java project.i've runned but i've this kind
> of error:
>
> Exception in thread "main" java.lang.UnsupportedOperationException: ERROR:
> GWT.create() is only usable in client code!  It cannot be called, for
> example, from server code.  If you are running a unit test, check that your
> test case extends GWTTestCase and that GWT.create() is not called from
> within an initializer or constructor.
>     at com.google.gwt.core.client.GWT.create(GWT.java:91)
>     at
> com.google.gwt.search.client.SearchControlOptions.<init>(SearchControlOptions.java:32)
>     at Search.main(Search.java:8)
>
> thanks
>
> P.S Paul i've read the documentation , that kind of answer is not required
> ;-)
--~--~---------~--~----~------------~-------~--~----~
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