Below is a method for installing J2SDK (part of the FAQ in 9CBS) 1.J2SDK's downloads There are two versions available in the Sun website, one is the form of the redhat rpm shell script, one is the Gnuzip Tar shell script form. Take J2SDK-1_4_1_01-Linux-i586-rpm.bin as an example (ie Redhat RPM Shell Script form). Of course, you can use the search engine, such as bingle.pku.edu.cn search, download from other places. 2. Switch to the directory of this file: Please determine the permissions permitted by the file before execution:
CHMOD X J2SDK-1_4_1_01-Linux-i586-rpm.bin
Then execute:
SH J2SDK-1_4_1_01-linux-i586-rpm.bin
3. After reading the declaration of license, of course, YES, it will begin to decompress, after completion, an RPM file J2SDK-1_4_1_01-FCS-Linux-i586.rpm will appear.
4. Then follow:
RPM-IVH J2SDK-1_4_1_01-FCS-Linux-I586.rpm
It will be installed. If you have an error message, you say that there is a problem with Dependence, add -nodeps' option.
RPM-IVH J2SDK-1_4_1_01-FCS-Linux-i586.rpm -nodeps
5. After completing, JDK is installed in /usr/java/j2sdk1.4.1_01
6. Set the path:
Export Path = / usr / java / j2sdk1.4.1_01 / bin: $ PATH
Posted by Malin