1 下载jdk J2SE 5.0
http://java.sun.com/javase/downloads/index_jdk5.jsp
2 下载到相应的目录下。然后运行./java_ee_sdk-5_01-linux.bin
结果报错:
./java_ee_sdk-5_01-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
解决方法:
1 创建链接符ln -s /usr/lib/libstdc++.so.6.0.3 /usr/lib/libstdc++.so.5 然后赋权后继续运行还是报错
2 下载一个libstdc++.so.5 copy到usr/lib下面 下载地址:http://www.linuxidc.com/upload/2008_06/08062807082818.zip 运行./java_ee_sdk-5_01-linux.bin
安装成功:
[root@localhost bin]# java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)