linux 下安裝eclipse無法啟動,找不到jdk的解決辦法

來源:互聯網
上載者:User

1.下載
 下載eclipse和myeclipse的地址:http://www.verycd.com/topics/147708/
 2.安裝
 安裝eclipse非常簡單,用tar -zxvf 命令解壓縮出eclipse,然後移動到你想存放的目錄下即可。
 解壓出eclipse後,運行,提示eclipse找不到jdk,錯誤如下:

 

JVM terminated. Exit code=-1
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Djava.class.path=/usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar

-os linux
-ws gtk
-arch x86
-showsplash /usr/local/eclipse//plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
-launcher /usr/local/eclipse/eclipse
-name Eclipse
--launcher.library /usr/local/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
-startup /usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-vm /usr/java/jdk1.6.0_20/bin/../jre/lib/i386/client/libjvm.so
-vmargs
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Djava.class.path=/usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar

 

 

解決辦法如下:
 
修改eclipse目錄下ecl.ini 檔案,內容如下:
 -debug
 options
 -vm
 /usr/jdk1.5/bin/java
 -vmargs
 -Xms40m
 -Xms256m
 儲存,重新運行eclipse,可以啟動了。
 
安裝myeclipse也很簡單,首先給下載的myeclipse檔案授予可執行許可權 chmod a+x myeclipse.bin,然後執行 ./myeclipse.bin
 開始安裝,安裝過程和windows下安裝基本相同。安裝完成myeclipse後,需要啟用,啟用碼如下:
 MyEclipse註冊碼:
License Name : eimhe.com
License Key : rLR8ZC-444-55-4467865849792733

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.