在fc6上安装myeclipse全程记录
在fc6上安装myeclipse全程记录 今天用Fedora core6重装了一次系统,接着下载jdk,安装myeclipse,出现了一些问题,经过各位达人的帮忙,终于解决了,现在把整个过程记录一下。1.下载并安装jdkjdk下载完成后,在命令行里输入: rpm -ivh jdk-1_5_0_07-linux-i586.rpm 自动安装jdk,系统默认将jdk
·
在fc6上安装myeclipse全程记录
今天用Fedora core6重装了一次系统,接着下载jdk,安装myeclipse,出现了一些问题,经过各位达人的帮忙,终于解决了,现在把整个过程记录一下。1.下载并安装jdk
jdk下载完成后,在命令行里输入:
自动安装jdk,系统默认将jdk安装在
/usr/java/jdk1.5.0_07
2.下载并安装eclipse,解压缩即可
rpm -ivh jdk-1_5_0_07-linux-i586
.
rpm
/usr/java/jdk1.5.0_07
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
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
-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了。
更多推荐
已为社区贡献2条内容
所有评论(0)