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.
- How does one check the JVM version on the device?
- If the JVM isn't version 1.8, how can one install JVM 1.8?
- How does one define INSTALL4J_JAVA_HOME to point to the JVM?
1 Answer
java --versionsudo apt-get install openjdk-8-jreexport INSTALL4J_JAVA_HOME=pathToJVM
update-java-alternatives --list to manage installed java versions