在fc6上安裝myeclipse全程記錄

來源:互聯網
上載者:User
在fc6上安裝myeclipse全程記錄

        今天用Fedora core6重裝了一次系統,接著下載jdk,安裝myeclipse,出現了一些問題,經過各位達人的幫忙,終於解決了,現在把整個過程記錄一下。
1.下載並安裝jdkjdk下載完成後,在命令列裡輸入:

 rpm -ivh jdk-1_5_0_07-linux-i586.rpm 

自動安裝jdk,系統預設將jdk安裝在
/usr/java/jdk1.5.0_07

2.下載並安裝eclipse,解壓縮即可
3.下載並安裝Myeclipse
我下載的是一個 MyEclipse_5_0_1GA_E3_2.bin檔案,在命令列裡直接輸入:  ./MyEclipse_5_0_1GA_E3_2.bin提示:bash: ./MyEclipse_5_0_1GA_E3_2.bin: 許可權不夠
然後輸入: chmod +x MyEclipse_5_0_1GA_E3_2.bin再接著輸入: ./MyEclipse_5_0_1GA_E3_2.bin
螢幕顯示以下資訊: 再輸入以下命令:Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.4460/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
然後,我在高手的指點下,輸入以下命令:export CLASSPATH=/tmp/install.dir.4460/InstallerData:/tmp/install.dir.4460/InstallerData/installer.zip:
其中,4460是在錯誤中給出的資訊,接著輸入以下命令: /usr/java/jdk1.5.0_07/bin/java -Xmx268435456
-Xms67108864
com.zerog.lax.LAX /tmp/install.dir.4460/temp.lax /tmp/env.properties.4460 至此,Myeclipse就可以順利安裝了。4.啟動Myeclipse由於在系統安裝過程中,系統內建了一個jdk,所以啟動Myeclipse時會出現問題,不知道選擇哪個jdk,可以輸入以下命令選擇:

alternatives --install /usr/bin/java java /usr/java/jdk1.5.0_10/bin/java 1

 

alternatives --config java

給出如下提示:

共有 2 個程式提供“java”。

  選擇    命令
-----------------------------------------------
*+ 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
   2           /usr/java/jdk1.5.0_07/bin/java

按 Enter 來儲存當前選擇[+],或鍵入選擇號碼:

輸入2,斷行符號,重啟Myeclipse,一切就ok了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.