How to execute a Unix shell script via GWT?

2019-09-05 08:16发布

问题:

Im building an GUI that will help my team mates to execute some jars without going using the terminal (with all the validating and stuff).

At some stage, the gui sould gather params from the gui and execute them, something like : --start -Xbootclasspath/p:lib/OB-4.3.4.jar:lib/OBNaming-4.3.4.jar -Dmy.property.ns=corbaloc:iiop:localhost:900/NameService -Dmachine=energie -Dexecutable=MOREventd -DtypeArbo=1 -jar MOREventd

I was wondering how could i do that since Runtime Exec doesn't work with Google Web Toolkit)

thx for any help.

回答1:

The GWT module will need to send details about the invocation to a server by using GWT-RPC, RequestFactory, or some other communication package. The server will then execute the commands on behalf of the browser client.