Eclipse 如何在 Linux 中找到 JDK?
2022-09-04 06:55:03
我已经手动安装了Eclipse和jdk。我的JAVA_HOME已设置,并且我能够运行java -version和javac -version命令,但是当我尝试运行Eclipse时,它会显示以下消息:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/$USER/development/eclipse/jre/bin/java
java in your current PATH
我该如何解决这个问题?
发行版:
Ubuntu 12.0.4 64 bits.
爪哇岛:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
$JAVA_首页:
/usr/lib/jvm/jdk1.6.0_45
我的$PATH包含以下内容:
/usr/lib/jvm/jdk1.6.0_45/bin
感谢您的帮助