博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu12 安装JDK1.7
阅读量:4132 次
发布时间:2019-05-25

本文共 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/

你可能感兴趣的文章
Linux基础系列-Kernel 初始化宏
查看>>
Linux子系统系列-I2C
查看>>
<iOS>关于自定义description的一点用法
查看>>
Unix 命令,常用到的
查看>>
DLL中建立进程共享数据段需要注意的语法问题
查看>>
服务器端技术----Http请求的处理过程
查看>>
C语言-预处理指令2-条件编译
查看>>
C语言-预处理指令3-文件包含
查看>>
C语言-变量类型
查看>>
C语言-static和extern关键字1-对函数的作用
查看>>
C 语言-static和extern关键字2-对变量的作用
查看>>
【JavaScript 教程】浏览器—History 对象
查看>>
还不会正则表达式?看这篇!
查看>>
100道+ JavaScript 面试题,助你查漏补缺
查看>>
JavaScript深入理解之闭包
查看>>
这才是学习Vite2的正确姿势!
查看>>
7 个适用于所有前端开发人员的很棒API,你需要了解一下
查看>>
25个构建Web项目的HTML建议,你需要了解一下!
查看>>
【web素材】02-10款大气的购物商城网站模板
查看>>
6种方式实现JavaScript数组扁平化(flat)方法的总结
查看>>