Chinaunix首页 | 论坛 | 博客
  • 博客访问: 700295
  • 博文数量: 109
  • 博客积分: 1751
  • 博客等级: 上尉
  • 技术积分: 1816
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-31 22:37
文章分类

全部博文(109)

文章存档

2014年(9)

2013年(21)

2012年(48)

2011年(31)

分类: LINUX

2012-12-28 13:30:27

UPDATE: [07-Aug-2012] Thanks to a comment from Pierre-Yves Langlois this seems to be the best method (uses the latest version of the Flexion script from Github rather than the version referenced above)


sudo apt-get purge sun-java* #You need to do that if you want the mozilla plugin to work without conflict with java7 for instance.
mkdir ~/src
cd ~/src
git clone https://github.com/flexiondotorg/oab-java6.git
cd ~/src/oab-java6
sudo ./oab-java.sh

Then when its finished, install java:
sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-jdk

You can follow the installation process with:
tail -f ~/src/oab-java6/oab-java.sh.log



===================================================================

apt-get purge openjdk*

apt-add-repository ppa:flexiondotorg/java

apt-get update

apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

=============================================================
手动安装:
1, 根据自己机器的类型下载对应的安装包
http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html
2, mkdir /usr/lib/jvm/java
3, copy installed file jdk-6u43-linux-x64.bin to /usr/lib/jvm/java and chmod to executable
4, cd /usr/lib/jvm/java
      ./jdk-6u43-linux-x64.bin
5, add below to the end of /etc/profile

点击(此处)折叠或打开

  1. #set java environment

  2. export JAVA_HOME=/usr/lib/jvm/java/jdk1.6.0_43

  3. export JRE_HOME=/usr/lib/jvm/java/jdk1.6.0_43/jre

  4. export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH

  5. export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH




阅读(4516) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册