最近下载了cent os 6.0作为服务器的操作系统,安装系统的时候一切正常。可以在安装java_ee_sdk-6u3-jdk7-linux-ml.sh 的时候就出现了问题。
不多说,直接说报错。
因为服务器不做编译,所以一开始只安装了 jre-7u1-linux-i586.rpm。
安装java_ee_sdk-6u3-jdk7-linux-ml.sh,但是出现错误;
Could not locate a suitable jar utility.
Please ensure that you have Java 6 or newer installed on your system and accessible in your PATH or by setting JAVA_HOME
有人网上说也许是由于jdk的原因。于是将jdk-7u1-linux-i586.rpm进行安装,安装后设置了java的环境变量。
unset i
unset pathmunge
JAVA_HOME=/usr/java/jdk1.7.0_01 ; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
"/etc/profile" 71L, 1550C written
[root@localhost opt]# source /etc/profile
[root@localhost opt]# java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Server VM (build 21.1-b02, mixed mode)
但是在安装java_ee_sdk-6u3-jdk7-linux-ml.sh有出现错误。
[root@localhost opt]# ./java_ee_sdk-6u3-jdk7-linux-ml.sh
This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY
[root@localhost opt]# ./java_ee_sdk-6u3-jdk7-linux-ml.sh
This program requires DISPLAY environment variable to be set.
Please re-run after assigning an appropriate value to DISPLAY.
看了下具体的错误:表明缺少一个DISPALY的环境那个变量。
于是查看下系统是否有这样的环境变量
[root@localhost opt]# echo $DISPLAY
发现没有,于是增加一个。
[root@localhost opt]# export DISPLAY=:0.0
再次查看。
[root@localhost opt]# echo $DISPLAY
:0.0
于是进程重新安装
[root@localhost opt]# ./java_ee_sdk-6u3-jdk7-linux-ml.sh
[root@localhost opt]# ./java_ee_sdk-6u3-jdk7-linux-ml.sh
Extracting the installer archive...
java.util.zip.ZipException: invalid entry size (expected 3807112 but got 66971 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:403)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
at sun.tools.jar.Main.extractFile(Main.java:961)
at sun.tools.jar.Main.extract(Main.java:877)
at sun.tools.jar.Main.run(Main.java:263)
at sun.tools.jar.Main.main(Main.java:1177)
Extracting the installer runtime...
java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:193)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
at sun.tools.jar.Main.extractFile(Main.java:961)
at sun.tools.jar.Main.extract(Main.java:877)
at sun.tools.jar.Main.run(Main.java:263)
at sun.tools.jar.Main.main(Main.java:1177)
Extracting the installer resources...
java.io.FileNotFoundException: ./Product/Packages/Resources.zip (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.
at java.io.FileInputStream.
at sun.tools.jar.Main.run(Main.java:259)
at sun.tools.jar.Main.main(Main.java:1177)
Extracting the installer metadata...
java.io.FileNotFoundException: ./Product/Packages/metadata.zip (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.
at java.io.FileInputStream.
at sun.tools.jar.Main.run(Main.java:259)
at sun.tools.jar.Main.main(Main.java:1177)
chmod: cannot access `product-installer.sh': No such file or directory
sh: product-installer.sh: No such file or directory
[root@localhost opt]#
又出现了新的问题了。。。
有谁知道这是什么原因吗???
于 2013-07-15 15:06:23发表:
ftp传输问题,文件不完整,在ftp下先打开bin方式传输,ftp>bin
然后在运行