Install4j Mac OS X installer throws NullPointerException - install4j

Looking through the installation.log I found my Mac OS X installer (built with install4j 6.1) is throwing a NullPointerException when running the InstallFilesAction. Apparently it's trying to use AppleScript but it can't find the engine:
[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)
Is there a way to fix this?
EDIT: I also reproduced this on an installer built using 6.0.4

That is a bug in the JRE that occurs on some machines. This exception means that some processes cannot be detected but it does not impact the installer otherwise.

Related

Emacs is unable to run code in swift-mode since upgrading to Catalina

When I try to run code in emacs swift-mode with C-c C-z, I receive the following message:
'warning: unable to find and load segment named '__OBJC_RO' at
0x7fff6e030000 in '/usr/lib/libobjc.A.dylib' in macosx dynamic loader
plug-in.
warning: unable to find and load segment named '__OBJC_RW' at
0x7fff919d9080 in '/usr/lib/libobjc.A.dylib' in macosx dynamic loader
plug-in.'
I am running emacs version 26.3 and macOS version 10.15
Does anybody have a resolution for this issue?

Build Error using IL2CPP: "System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform."

I've run into some trouble when changing the Scripting Backend from Mono to IL2CPP to support Android x64 since Google says it's necessary.
I've tried to search all over the internet for a fix, but couldn't find anything.
The error:
il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.

Install4j installer and launcher returns odd errors when Java 9 or 10 are installed

We're getting ready to deploy our application (Cytoscape) for Windows, Linux and Mac.
We find that when Java 9 is installed on Fedora 26 64 bit, trying to run the installer gives "JVM must be greater than 1.6", though our JVM range is set to 1.8.0_152...1.9.
Is there a later installer/launcher version that gives a more informative error message? ... could we have something misconfigured??
On the same platform, but with Java 10 installed instead, the launcher apparently allows execution to commence (despite our JVM range). This ends badly, as Karaf complains:
/opt/Cytoscape_v3.6.1/framework/bin/karaf: line 242: [: : integer expression expected
-Djava.endorsed.dirs=/usr/java/jdk-10/jre/lib/endorsed:/usr/java/jdk-10/lib/endorsed:/opt/Cytoscape_v3.6.1/framework/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exceThe programmes occurred. Program will exit.
Is the launcher somehow misidentifying the JVM? Shouldn't it give an informative error and stop the launch (including Karaf) from proceeding?
Thanks!

MATLAB Error: Can't check VCRTs

When I start MATLAB I suddenly receive the following error message on the command line:
ERROR: Can't check 8.0 VCRTs (starter line:956) System Error:
0x00000005 ERROR: Can't check 9.0 VCRTs (starter line:995) System
Error: 0x00000005 Installing required 8.0 run-time libraries. This may
take a few minutes...
I tried to repair and reinstall the Visual C++ Redistributables (2005 and 2008), but that didn't solve the problem. Doing online research I mainly found out that people who had a similar problem reinstalled windows. Well, does anyone have another idea what I could try in order to solve that?

Install4j installer fails with internal error for Mac OS

I have built an installer using the latest Install4J. On the Mac OS, it fails to install with the following message: "An internal error has occuerred (error code: launch path not accessible)".
The same installer for other platforms (Windows 32/64, and Linux) work fine. Has anyone else seen this and know how to fix it?
It turns out, this error was caused by the OpenJDK JRE version i was using. It works fine with the Installed version of the JRE on my Mac.