我已經手動安裝了Eclipse和jdk。我的JAVA_HOME設置,並且我能夠運行Java的版本和的javac -version命令,但是當我嘗試運行Eclipse中,它顯示以下信息:如何讓Eclipse在Linux中查找我的jdk?
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:
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
謝謝你的幫助
只需將其添加到該目錄... – user1596138
謝謝,但添加什麼目錄? – androidevil
/home/$ USER/development/eclipse/jre/bin/java – 2013-05-30 19:12:48