web stats
No suitable Java Virtual Machine could be found on your system - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2019, 07:32 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 77
ppazos
Default No suitable Java Virtual Machine could be found on your system

I'm trying to install Mirth on a new server, have OpenJDK 9 installed and from the mirth connect install sh script I'm getting "No suitable Java Virtual Machine could be found on your system.", already defined the INSTALL4J_JAVA_HOME to point to the JDK installed, but still getting the error, there are no other JRE/JDK installed on that machine and getting the version OK:

$ java -version
openjdk version "9.0.7.1"
OpenJDK Runtime Environment (Zulu build 9.0.7.1+1)
OpenJDK 64-Bit Server VM (Zulu build 9.0.7.1+1, mixed mode)

Not sure what's wrong.

Also tried to check if I can install Oracle's JDK but they put a login to download the JDK installers and can't login on the web from my terminal-only linux (ubuntu 19.04).

Tried a couple of different distros of OpenJDK (using the SDKMAN! tool), have the same issue.

My user is on the sudo group, and tried to install using sudo ./mirthconnect-3.6.2.b232-unix.sh


But if I try to run the installation script without sudo I get:

./mirthconnect-3.6.2.b232-unix.sh
Starting Installer ...
java.lang.InternalError: java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFacto ry.java:86)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManage rFactory.java:74)
at java.desktop/sun.font.SunFontManager.getInstance(SunFontManager .java:251)
at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMe trics.java:264)
at java.desktop/sun.swing.SwingUtilities2.getFontMetrics(SwingUtil ities2.java:1174)
at java.desktop/javax.swing.JComponent.getFontMetrics(JComponent.j ava:1647)
at java.desktop/javax.swing.text.WrappedPlainView.updateMetrics(Wr appedPlainView.java:442)
at java.desktop/javax.swing.text.WrappedPlainView.updateChildren(W rappedPlainView.java:421)
at java.desktop/javax.swing.text.WrappedPlainView.insertUpdate(Wra ppedPlainView.java:593)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.insert Update(BasicTextUI.java:1703)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.i nsertUpdate(BasicTextUI.java:1962)
at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate (AbstractDocument.java:203)
at java.desktop/javax.swing.text.AbstractDocument.handleInsertStri ng(AbstractDocument.java:757)
at java.desktop/javax.swing.text.AbstractDocument.insertString(Abs tractDocument.java:716)
at java.desktop/javax.swing.text.PlainDocument.insertString(PlainD ocument.java:131)
at java.desktop/javax.swing.text.DefaultEditorKit.read(DefaultEdit orKit.java:274)
at java.desktop/javax.swing.JEditorPane.setText(JEditorPane.java:1 428)
at java.desktop/javax.swing.JEditorPane.<init>(JEditorPane.java:29 2)
at com.install4j.runtime.installer.frontend.headless. AbstractHeadlessScreenExecutor.init(AbstractHeadle ssScreenExecutor.java:68)
at com.install4j.runtime.installer.frontend.headless. ConsoleScreenExecutor.<init>(ConsoleScreenExecutor .java:24)
at com.install4j.runtime.installer.frontend.headless. InstallerConsoleScreenExecutor.<init>(InstallerCon soleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScree nExecutor(Installer.java:88)
at com.install4j.runtime.installer.Installer.runInPro cess(Installer.java:57)
at com.install4j.runtime.installer.Installer.main(Ins taller.java:45)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEn gine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.main(U nixLauncher.java:62)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62 )
at java.base/jdk.internal.reflect.DelegatingConstructorAccessor Impl.newInstance(DelegatingConstructorAccessorImpl .java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Construc tor.java:488)
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFacto ry.java:84)
... 30 more
Caused by: java.lang.NullPointerException
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfigura tion.java:1288)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontC onfiguration.java:225)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.j ava:107)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11 FontManager.java:765)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java: 440)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java :385)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35 )
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java: 56)
... 35 more
An error occurred:
java.lang.InternalError: java.lang.reflect.InvocationTargetException
Error log: /tmp/install4jError308033992533222509.log
java.lang.InternalError: java.lang.reflect.InvocationTargetException
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFacto ry.java:86)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.FontManagerFactory.getInstance(FontManage rFactory.java:74)
at java.desktop/sun.font.SunFontManager.getInstance(SunFontManager .java:251)
at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMe trics.java:264)
at java.desktop/sun.swing.SwingUtilities2.getFontMetrics(SwingUtil ities2.java:1174)
at java.desktop/javax.swing.JComponent.getFontMetrics(JComponent.j ava:1647)
at java.desktop/javax.swing.text.WrappedPlainView.updateMetrics(Wr appedPlainView.java:442)
at java.desktop/javax.swing.text.WrappedPlainView.updateChildren(W rappedPlainView.java:421)
at java.desktop/javax.swing.text.WrappedPlainView.insertUpdate(Wra ppedPlainView.java:593)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.insert Update(BasicTextUI.java:1703)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.i nsertUpdate(BasicTextUI.java:1962)
at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate (AbstractDocument.java:203)
at java.desktop/javax.swing.text.AbstractDocument.handleInsertStri ng(AbstractDocument.java:757)
at java.desktop/javax.swing.text.AbstractDocument.insertString(Abs tractDocument.java:716)
at java.desktop/javax.swing.text.PlainDocument.insertString(PlainD ocument.java:131)
at java.desktop/javax.swing.text.DefaultEditorKit.read(DefaultEdit orKit.java:274)
at java.desktop/javax.swing.JEditorPane.setText(JEditorPane.java:1 428)
at java.desktop/javax.swing.JEditorPane.<init>(JEditorPane.java:29 2)
at com.install4j.runtime.installer.frontend.headless. AbstractHeadlessScreenExecutor.init(AbstractHeadle ssScreenExecutor.java:68)
at com.install4j.runtime.installer.frontend.headless. ConsoleScreenExecutor.<init>(ConsoleScreenExecutor .java:24)
at com.install4j.runtime.installer.frontend.headless. InstallerConsoleScreenExecutor.<init>(InstallerCon soleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScree nExecutor(Installer.java:88)
at com.install4j.runtime.installer.Installer.runInPro cess(Installer.java:57)
at com.install4j.runtime.installer.Installer.main(Ins taller.java:45)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEn gine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.main(U nixLauncher.java:62)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62 )
at java.base/jdk.internal.reflect.DelegatingConstructorAccessor Impl.newInstance(DelegatingConstructorAccessorImpl .java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Construc tor.java:488)
at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFacto ry.java:84)
... 30 more
Caused by: java.lang.NullPointerException
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfigura tion.java:1288)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontC onfiguration.java:225)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.j ava:107)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11 FontManager.java:765)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java: 440)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java :385)
at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35 )
at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java: 56)
Reply With Quote
  #2  
Old 10-08-2019, 09:36 AM
sgarner sgarner is offline
What's HL7?
 
Join Date: Oct 2019
Posts: 3
sgarner is on a distinguished road
Default

Hi ppazos - Did you ever get this resolved? I just downloaded OpenJDK 11 and am having issues launching Mirth now.
Reply With Quote
  #3  
Old 10-08-2019, 10:04 AM
sgarner sgarner is offline
What's HL7?
 
Join Date: Oct 2019
Posts: 3
sgarner is on a distinguished road
Default

Hi - Did you ever get this resolved? I am running into some issues with launching mirth after installing AdoptOpenJDK 11.
Reply With Quote
  #4  
Old 10-10-2019, 01:50 AM
fluancefg fluancefg is offline
OBX.2 Kenobi
 
Join Date: Oct 2013
Posts: 84
fluancefg is on a distinguished road
Default

If you want to use OpenJDK 11, you need at least Mirth 3.7 as described here: https://www.mirthcorp.com/community/...-+What%27s+New

We're using OpenJDK 11.0.4+11 from AdoptOpenJDK and it works perfectly with Mirth 3.7.x and 3.8.x

As stated by @agermano in an other thread: Did you follow the instructions in the user guide for running on java 9 or higher? You have to make some modifications to the default vmoptions files if you aren't using java 8.
Reply With Quote
  #5  
Old 10-10-2019, 05:24 AM
sgarner sgarner is offline
What's HL7?
 
Join Date: Oct 2019
Posts: 3
sgarner is on a distinguished road
Default

Thanks fluancefg - but I was able to figure it out. I realized that I needed to manually update my Java_home path to reference openjdk 11.
Reply With Quote
Reply

Tags
installation, java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation