Install4j Mac OS X 安装程序抛出 NullPointerException
Install4j Mac OS X installer throws NullPointerException
查看 installation.log
我发现我的 Mac OS X 安装程序(使用 install4j 6.1 构建)在 运行 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
构建的安装程序上复制了它
这是 JRE 中出现在某些机器上的错误。此异常意味着无法检测到某些进程,但不会影响安装程序。
查看 installation.log
我发现我的 Mac OS X 安装程序(使用 install4j 6.1 构建)在 运行 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
这是 JRE 中出现在某些机器上的错误。此异常意味着无法检测到某些进程,但不会影响安装程序。