本文共 2262 字,大约阅读时间需要 7 分钟。
JDK 1.7.0_17 install 1. Download JDK from: 2. sudo mkdir /usr/lib/jdk 3. sudo tar -zxvf ./jdk-7u17-linux-i586.tar.gz -C /usr/lib/jdk/ 4. sudo mv /usr/lib/jdk/jdk1.7.0_17/ /usr/lib/jdk/oracle_jdk1.7.0_17 5. sudo gedit /etc/profile add below at the end of file: export JAVA_HOME=/usr/lib/jdk/oracle_jdk1.7.0_17 export JRE_HOME=/JAVA_HOME/jre export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JRE_HOME/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH 6. setup config sudo update-alternatives --install /usr/bin/java java /usr/lib/jdk/oracle_jdk1.7.0_17/bin/java 300 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jdk/oracle_jdk1.7.0_17/bin/javac 300 sudo update-alternatives --config java sudo update-alternatives --config javac *******************************************************************************************************7.JAI
Linux 32- and 64-bit Operating Environment Installation Instructions The downloaded files are: jai-1_1_3-lib-linux-$ARCH-jdk.bin jai-1_1_3-lib-linux-$ARCH-jre.bin jai-1_1_3-lib-linux-$ARCH.tar.gz where ARCH is either i586 for the 32-bit platform or amd64 for the 64-bit platform. To install the JDK version for Linux, assuming: $JDK is the path into the jdk1.3 (or a higher version), $downloaddir is the directory into which you downloaded the .bin files. Run the following commands: % cd $JDK % chmod u+x $downloaddir/jai-1_1_3-lib-linux-$ARCH-jdk.bin % $downloaddir/jai-1_1_3-lib-linux-$ARCH-jdk.bin Note that unlike in the case of Solaris, the Linux 32- and 64-bit installations are not layered but rather mutually exclusive. IMPORTANT: If you do not "cd" to the JDK1.3 (or higher version) directory before performing the extraction, then JAI will not work correctly. You may also need appropriate write permissions into the JDK directory in order to install. To install the JRE version for Linux, try % cd $JRE ($JRE is the path into jre1.3 or later version.) % chmod u+x $downloaddir/jai-1_1_3-lib-linux-$ARCH-jre.bin % $downloaddir/jai-1_1_3-lib-linux-$ARCH-jre.bin IMPORTANT: If you do not "cd" to the JRE1.3 (or higher version) directory before performing the extraction, then JAI will not work correctly. You may also need appropriate write permissions into the JRE directory in order to install.转载地址:http://wrbvi.baihongyu.com/