通过installation.log
查看我发现我的Mac OS X安装程序(使用install4j 6.1构建)在运行NullPointerException
时抛出InstallFilesAction
。显然它正在尝试使用AppleScript
但它无法找到引擎:
[ERROR] com.install4j.runtime.beans.actions.InstallFilesAction [ID 6]:
java.lang.NullPointerException
at com.install4j.runtime.installer.helper.AppleScriptHelper.initEngine(AppleScriptHelper.java:30)
at com.install4j.runtime.installer.helper.AppleScriptHelper.executeWithReturnValue(AppleScriptHelper.java:42)
at com.install4j.runtime.installer.helper.AppleScriptHelper.getRecords(AppleScriptHelper.java:21)
at com.install4j.runtime.installer.platform.macos.MacProcessHelper.addGuiProcesses(MacProcessHelper.java:104)
at com.install4j.runtime.installer.platform.macos.MacProcessHelper.getRunningProcesses(MacProcessHelper.java:81)
at com.install4j.runtime.installer.helper.RunningProcessChecker$RunningProcessThread.run(RunningProcessChecker.java:329)
javax.script.ScriptException: AppleScript engine not found
javax.script.ScriptException: AppleScript engine not found
at com.install4j.runtime.installer.helper.AppleScriptHelper.executeWithReturnValue(AppleScriptHelper.java:44)
at com.install4j.runtime.installer.helper.AppleScriptHelper.getRecords(AppleScriptHelper.java:21)
at com.install4j.runtime.installer.platform.macos.MacProcessHelper.addGuiProcesses(MacProcessHelper.java:104)
at com.install4j.runtime.installer.platform.macos.MacProcessHelper.getRunningProcesses(MacProcessHelper.java:81)
at com.install4j.runtime.installer.helper.RunningProcessChecker$RunningProcessThread.run(RunningProcessChecker.java:329)
有没有办法解决这个问题?
编辑:我也在使用6.0.4