tags:

views:

134

answers:

1

Hi all,

Is it possible to use

Runtime.getRuntime().exec("cmd.exe"); 

in gwt? When I compile it, I get

Caused by: java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)

Any workarounds / ideas?

+4  A: 

No you can't.

GWT is eventually compiled to Javascript. Javascript cannot run arbitrary apps on your (local) machine

Itay
Good point ... I think I have officially given up trying to tie in a compiled Matlab script into GWT =/
Michael
You can do that on the server side and have the client code make a call to return the results. See http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html for details.
laz