加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

flex – 错误#3219 AIR中的NativeProcess

发布时间:2020-12-15 01:46:14 所属栏目:百科 来源:网络整理
导读:我在AIR 2.6 for Windows和Mac Os平台上有一个程序.使用NativeProcess类来执行我已包含在项目中的本机应用程序. 在Windows中所有工作正常,但在Mac不工作. 代码是: var executable:File = File.applicationDirectory.resolvePath('bin/mac/convert') var nat
我在AIR 2.6 for Windows和Mac Os平台上有一个程序.使用NativeProcess类来执行我已包含在项目中的本机应用程序.

在Windows中所有工作正常,但在Mac不工作.

代码是:

var executable:File = File.applicationDirectory.resolvePath('bin/mac/convert') 
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = executable;
nativeProcessStartupInfo.arguments = params;
nativeProcessStartupInfo.workingDirectory = workingDirectory;

if(NativeProcess.isSupported)
    start(nativeProcessStartupInfo);

错误在start(…)行:

Error #3219: The NativeProcess could not be started. 'launch path not accesible'.

可执行var是一个带有路径的文件在debug = / Users / awakening / Documents / workspace / flashbuilder / SDTDV / bin-debug / bin / mac / convert

它说存在=真.发布版本的问题相同.

提前谢谢你.

解决方法

如果您尝试执行的文件没有设置执行位,则会出现此错误.

您可以在命令行中使用chmod

或者,如果使用Flex / Flash Builder,您可以右键单击该文件并选择属性.然后设置执行位

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读