PSA: Mirth Connect on macOS Monterey #4984
Replies: 9 comments 34 replies
-
Confirmed that this worked for me on an Intel processor running Monterey. I did have to specify a custom Java Home location in Mirth though. Anyone found a better way to configure that? Happy to share what I tried to help build some step by step instructions for others. |
Beta Was this translation helpful? Give feedback.
-
M1 Mac on Monterey here. Recently I went through about 10 JVMs to find one that would run the Mirth Connect Administrator without crashing. Confirmed that it must have JavaFX for the Administrator even to launch. I found that the 17.0.2 JDKs from Eclipse, Azul, and Oracle all crashed or had problems. The one I found that is currently working reliably is Zulu 8.60.0.21 with JRE FX. I too would like to know how to change the Launcher's own JVM, because it crashes frequently as well. |
Beta Was this translation helpful? Give feedback.
-
Hi all - I can confirm that the JRE Bundled with Mirth Connect Administrator Launcher (MCAL) was the problem on my system. Here is the version that is bundled:
For me, I made sure that I had a good version Java installed, I am using Amazon Corretto v8 and v17. Make sure that your system is set to use these via JAVA_HOME or some like jenv. As @JawnnyB pointed out, you just need to launch Mirth Connect from Mirth Connect Administrator Launcher using the Default or Custom options. Default worked for me. As an alternative you can delete the JRE that is bundled with MCAL. I deleted:
Now when I run Mirth Connect with the Default option on Java Home setting MCAL is smart enough to find the correct Java. I do believe that a new version of Mirth Connect Administrator Launcher should be released with an updated bundled java; 1.8.0_333 or later. |
Beta Was this translation helpful? Give feedback.
-
I also tried to install mirth on M1 Macbook Air, Monterary. I downloaded the MacOS installer directly from nextgen website, but when I run it, Mac says cannot run security scan on the app. I have no idea why it would say that. Basically, it won't run. Then I tried tar.gz, it also said that jar publisher cannot be verified. Not sure what to do. |
Beta Was this translation helpful? Give feedback.
-
Just moved over to a Mac with M1 pro chipset. Trying to get Mirth Connect to stop crashing randomly. Read through the post and have installed both zulu-8.jdk and .jre. Installed default location (/library/java/javavirtualmachines) When I run java -version in terminal I get openjdk version "1.8.0_332", OpenJDK Runtime Environment (Zulu build 1.8.0_332-b09) OpenJDK 64-Bit Server (Zulu Build 25.332-b09, mixed mode) When I point Connect Administrator to use Java Home/Custom and point it to the Zulu folder I get an error after logging in saying there is an error connecting to the server, please verify server is up and running. If I set it back to default I can log in with no issues but the connect will just suddenly close without any reason and at random times. Wondering what I am missing. |
Beta Was this translation helpful? Give feedback.
-
I believe the source of this issue is the Admin Launcher (possibly Mirth Connect Server also) comes bundled with the official Oracle 8 JDK (the version before all of the Oracle license changes) and that conflicts with newer versions of MacOS. Now that OpenJDK is officially supported, a newer Java version should be bundled. In addition, the new Mac silicon (M1 and M2) chips have to emulate x86 architecture but there is a native JDK build for the ARM architecture used by these new chipsets. It would be ideal if Nextgen would update their bundled Java version as well as offer M1-specific builds for both Mirth Connect and the Launcher instead of requiring users to go through extra steps. |
Beta Was this translation helpful? Give feedback.
-
I just got a new M1 MBP (Apple is no longer selling Intel based Macs) and am having issues installing MC. I've installed both of the above versions of Java but still am unable to get past the notice that pops up stating that I "need at least a 1.8 Java Virtual Machine to install Mirth Connect Installer. Please download it from http://java.com". Any thoughts on how to install Java and then MC on a new M1? This is a real pain and can't stand the thought of slinking back to Windows. Thx! |
Beta Was this translation helpful? Give feedback.
-
I am hitting two issues:
I have the suggested Azul version installed and set. |
Beta Was this translation helpful? Give feedback.
-
Myself and others have encountered issues with Mirth instances crashing on macOS Monterey to the point that it is unusable. The bundled Java included with the launcher appears to work but will crash silently. Other versions will fail to start entirely. The underlying issue seems to be this OpenJDK bug:
https://bugs.openjdk.java.net/browse/JDK-8275723
That's reported to be fixed in OpenJDK 17.0.2, but it doesn't seem to solve this issue, at least not for me.
It does not appear to be specific to M1 macs, I'm on an M1 machine but others have reported it on Intel. The only workaround at the moment that seems to work is to use the Azul Zulu or another alternative JRE or JDK that includes JavaFX.
https://www.azul.com/downloads/?package=jdk
It can also be installed with Homebrew if you use that. I've been using it for a few weeks and it mostly works although there is an issue with some text panes not rendering, most noticeable in the message viewer. Annoying, although sometimes it works.
Update: Came back to this and tried some of the other Java versions mentioned in various comments. Azul Zulu JDK 8.64.0.19 is working for me without any issues. You'll need to get it from their website as Homebrew only has v17.x and that has issues. I tried both the JRE and JDK and both worked, just sure to get the version with Java FX.
Thanks to @skehlet for the tip off 👍
Beta Was this translation helpful? Give feedback.
All reactions