web stats
Mirth 3.5.2 .sh install "No suidable Java Virtual Machine could be found..." - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2018, 05:58 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 75
ppazos
Default Mirth 3.5.2 .sh install "No suidable Java Virtual Machine could be found..."

I have downloaded the last version .sh on Linux Mint, have JDK 1.8 and have defined the INSTALL4J_JAVA_HOME env var.

Try to install:

~ $ sudo ./mirthconnect-3.5.2.b204-unix.sh
...
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.


Checking the env var is defined:

~ $ $INSTALL4J_JAVA_HOME
bash: /home/pablo/.sdkman/candidates/java/current: Is a directory


Checking Java version:

~ $ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)


Not sure what's wrong.
Reply With Quote
  #2  
Old 04-22-2018, 08:15 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,116
narupley is on a distinguished road
Default

Sounds like it could be a permissions or path issue. Is the java command you're using actually the same as the INSTALL4J_JAVA_HOME you've created? What does "which java" output? Also check Unix ownerships, maybe that directory isn't accessible for the user that launches the JVM.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 04-22-2018, 09:54 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 75
ppazos
Default

I use this JDK for other projects and works OK. I'm a root user and executed the installer with sudo.

INSTALL4J_JAVA_HOME is equal to JAVA_HOME env, that I use for other projects.

If I go to $JAVA_HOME/bin and execute ./java -version it outputs the same as executing java -version from any folder:

~$ cd $JAVA_HOME
~$ /.sdkman/candidates/java/current/bin $ ./java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

~$ $JAVA_HOME
bash: /home/pablo/.sdkman/candidates/java/current: Is a directory

I also tried to set INSTALL4J_JAVA_HOME to $JAVA_HOME/jre but got the same result (saw that on a forum)
Reply With Quote
  #4  
Old 04-23-2018, 04:14 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 75
ppazos
Default

Tried with previous versions and got the same error, but 3.4.2 asks for Java 1.7.

Strange things

1. I have Java 1.8 on the path (can run "java" command from anywhere), so not sure why the INSTALL4J_JAVA_HOME is even needed.

2. My user is root, I have permissions and run the installer using sudo.

3. I purged all OpenJDK* packages and installed Oracle's 1.8 JDK.

It seems the .sh is not working at all for me and there is no clear solution for this issue, so I'll try the tar.gz install
Reply With Quote
  #5  
Old 04-23-2018, 04:41 PM
ppazos ppazos is offline
OBX.2 Kenobi
 
Join Date: May 2008
Posts: 75
ppazos
Default

Downloaded the tar.gz, when executing mcserver or mcservice, I got the same error:

$ /opt/mirth-3.5.2 $ sudo ./mcserver
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

$ /opt/mirth-3.5.2 $ java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)


It seems install4j has a problem with links, since my JAVA_HOME points to a path that is a link to a real path to a specific JDK version folder. When I set the path to the specific JDK version directly, the error disappeared.

I'll leave this comment because others might find this useful.
Reply With Quote
Reply

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 06:11 PM.


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