Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Air本地进程java_Java_Actionscript 3_Jar_Air - Fatal编程技术网

Air本地进程java

Air本地进程java,java,actionscript-3,jar,air,Java,Actionscript 3,Jar,Air,我想与AIR项目中的.jar文件交互。我在AIR2中使用了NativeProcess特性,但似乎我不能将“myJavaFile.jar”定义为可执行文件 在Windows上,您可以将“java.exe”作为可执行文件,问题是Mac无法处理.exe文件 所以我的问题是:如何在AIR2中使用带有NativeProcess特性的.jar文件。或者有其他解决方案可以与AIR/AS3中的.jar文件通信 非常感谢 我明白了。您可以使用var file:file=newfile(“/usr/bin/java

我想与AIR项目中的.jar文件交互。我在AIR2中使用了NativeProcess特性,但似乎我不能将“myJavaFile.jar”定义为可执行文件

在Windows上,您可以将“java.exe”作为可执行文件,问题是Mac无法处理.exe文件

所以我的问题是:如何在AIR2中使用带有NativeProcess特性的.jar文件。或者有其他解决方案可以与AIR/AS3中的.jar文件通信


非常感谢

我明白了。您可以使用var file:file=newfile(“/usr/bin/java”)并使用参数向量将参数传递给Java文件。例如

var arguments:Vector.<String> = new Vector.<String>;
arguments.push("-jar");
var参数:向量新向量。;
参数push(“-jar”);