How to execute a Unix shell script via GWT?

限于喜欢 提交于 2019-12-13 04:26:28

问题


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.



来源:https://stackoverflow.com/questions/5693623/how-to-execute-a-unix-shell-script-via-gwt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!