Centos6.0 installation of java_ee_sdk-6u3-jdk7-linux-ml.sh problems-Linux general technology-Linux technology and application information, the following is a detailed reading. [I = s] This post was last edited by zhuifengzhifeng at, January 7 ,.
Recently, cent OS 6.0 was downloaded as the operating system of the server, and everything was normal during system installation. You can install the java_ee_sdk-6u3-jdk7-linux-ml.sh on the problem.
Not to mention, simply report an error.
Because the server does not compile, only the jre-7u1-linux-i586.rpm is installed at the beginning.
Install java_ee_sdk-6u3-jdk7-linux-ml.sh, but error;
Cocould 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
Some people say it may be due to jdk. So I installed the jdk-7u1-linux-i586.rpm and set the java environment variable after installation.
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)
But an error occurred while installing the 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.
After reading the specific error, it indicates that the variable of the DISPALY environment is missing.
Check whether the system has such environment variables.
[Root @ localhost opt] # echo $ DISPLAY
No, so add one.
[Root @ localhost opt] # export DISPLAY =: 0.0
View again.
[Root @ localhost opt] # echo $ DISPLAY
0.0
So the process is re-installed.
[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 (maid. 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. (FileInputStream. java: 138)
At java. io. FileInputStream. (FileInputStream. java: 97)
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. (FileInputStream. java: 138)
At java. io. FileInputStream. (FileInputStream. java: 97)
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] #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service