nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
915 stars 275 forks source link

[BUG] MacOS installer is sensitive to architecture. It requires an x86 JVM #6020

Open jonbartels opened 9 months ago

jonbartels commented 9 months ago

Describe the bug MacOS installer won't work on ARM Macs unless an x86 JVM is installed.

To Reproduce

  1. Download the MacOS installer package
  2. Run the installer from the command line so you can see logs, INSTALL4J_LOG=yes ./Mirth\ Connect\ Installer.app/Contents/MacOS/JavaApplicationStub -manual -c
  3. Observe logs like checkArchitecture(CFBundleRef) [Line 83] checking architectures 16777223 ( 16777228 )
  4. Installer will fail with ERROR: You need at least a 1.8 Java Virtual Machine to install Mirth Connect Installer. Please download it from http://java.com

Expected behavior The installer should work with ANY installed JVM. Installing an x86 JVM on ARM is stupid because it has to run in Rosetta for compatibility. It's a JVM, the whole point is that Java apps can run anywhere on a JVM thats new enough and should not be architecture sensitive.

Logs Mirth Installer Logs.txt

Environment :

Workaround(s) Install an x86 JVM instead of an ARM JVM

Additional context The installer is not the best option for running Mirth but it is a good "front door" to get up and going fast. It should work on any JVM newer than Java 8.