我如何安装正确的 Java 虚拟机?

我如何安装正确的 Java 虚拟机?

我在终端收到以下错误:

No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.5.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
You can also try to delete the JVM cache file

我正在使用 14.04。

答案1

只需打开终端 (CTRL + ALT + T) 并运行即可安装最新版本的 Java

sudo apt-get install openjdk-7-jre

相关内容