1. 首先下载一个Linux Platform的JDK,我下的是jdk-1_5_0-linux-i586-rpm.bin 建议下载RPM自解压格式的(RPM in self-extracting file,jdk-1_5_0-linux-i586-rpm.bin); 2. 上载到Linux机器上,在shell下执行命令: [root@LinuxServer rpm]# chmod 755 jdk-1_5_0-linux-i586-rpm.bin [root@LinuxServer rpm]# ./j2sdk-1_4_2_07-linux-i586-rpm.bin 这时会有一段Sun的协议,敲几次空格键,当询问是否同意的时候,敲yes就可以了。 Sun Microsystems, Inc. Binary Code License Agreement for the JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION, VERSION 1.5.0 ... Do you agree to the above license terms? [yes or no]yes Unpacking... Checksumming... 0 0 Extracting... UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (). inflating: j2sdk-1_5_0-linux-i586.rpm Done.