Score:1

.sh executable asking for definition for INSTALL4J_JAVA_HOME path to jvm

cn flag

I want to run a .sh executable to install software but when I try to execute the file using ./<fileName> in my terminal, following error message appears:

No suitable Java Virtual Machine could be found on your system. The version of the JVM must be 1.8. Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

  1. How does one check the JVM version on the device?
  2. If the JVM isn't version 1.8, how can one install JVM 1.8?
  3. How does one define INSTALL4J_JAVA_HOME to point to the JVM?
Score:0
jp flag
  1. java --version
  2. sudo apt-get install openjdk-8-jre
  3. export INSTALL4J_JAVA_HOME=pathToJVM

update-java-alternatives --list to manage installed java versions

tr flag
Step 3 (export INSTALL4J_JAVA_HOME=pathToJVM) will not be necessary after installing Java 1.8, because the .sh executable will find the installation.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.