tags:

views:

30

answers:

1

Hi,

Since GWT is cross-compiled to javascript, only a few JRE packages are emulated. What if I need to make complex computations with packages not supported by the GWT x-compiling?

Is there a way to create a separate java app that can be invoked from the client side GWT (which would of course need to be shipped with the client). I don't want to ask the server to compute stuff that can be done by the client.

For example, I have a computer imaging library that could perform stuff for me without invoking the remote server.

Thank you.

+2  A: 

If you can do something using pure Javascript/Javascript library you can use it straightway within GWT using JSNI. JSNI is basically a bridge to write Javascript within client side java code. Thus if you find yourself stuck trying to figure out how to do things in GWT which can easily be achieved using Javascript, either using plain Javascript or using 3rd party Javascript libraries, use JSNI.

Ashwin Prabhu
Thanks for your answer.
code-gijoe