我在vmware虛擬機上安裝了linux系統,併成功地安裝了jdk
現在可以運行自己編寫的JAVA程序。
但是解壓eclipse-
jee-galileo-SR2-linux-gtk.tar文件之後運行eclipse卻總是失敗
它提示說JRE
JDK沒有安裝好,總之就是那個PATH路徑不正確。
還是把運行的錯誤信息貼出來吧。。。
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/wrm/Desktop/eclipse/jre/bin/java
java
in your current PATH
請教這該怎麼辦啊?!
JDK安裝是沒問題的,可以用命令行運行JAVA程序的。
下載eclipse-jee-ganymede-linux-gtk.tar.gz
安裝:
在拷貝eclipse-jee-
ganymede-linux-gtk.tar.gz到/usr/soft/eclipse目錄下,cd到該目錄,執行:
tar -zvxf
eclipse-jee-ganymede-linux-gtk.tar.gz
在/usr/soft/eclipse下生成eclipse包,進
入eclipse下,即/usr/soft/eclipse/eclipse下,執行./eclipse,將運行eclipse出錯,提示:“no
java virtual machine was found after searching the following locations:”
解 決辦法:
在debian中安裝eclipse:
解壓到某位置,此處爲/usr/soft/eclipse/,運行eclipse時
提示“no java virtual machine was found after searching the following
locations:”。
原因是沒找到jre,解決辦法是,進入/usr/soft/eclipse/eclipse目錄,建立軟連接,連接到
jre,
ln -s /usr/soft/java/jdk/jre jre
debiangary:/usr/soft/eclipse/eclipse# ln -s /usr/soft/java/jdk/jre jre