我们有一个可执行jar文件,可以从命令行运行,并且它会连续运行以执行一些与文件相关的任务。
java -jar 'fileTester.jar' 'params'
此外,我们还有一个Adobe AIR客户端需要启动此jar命令。我们如何从Flex调用jar文件命令?有可能吗?
答案 0 :(得分:0)
我认为您需要的功能称为NativeProcess。以下是一些文档:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeProcess.html
http://www.seriousmagic.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html
http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html