我已经手动安装了 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_HOME:
/usr/lib/jvm/jdk1.6.0_45
我的 $PATH 包含以下内容:
/usr/lib/jvm/jdk1.6.0_45/bin
感谢您的帮助