Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151241
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 0
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-05 15:39
文章存档

2016年(6)

2015年(36)

2014年(13)

2013年(5)

我的朋友

分类: Android平台

2013-10-31 15:06:57

#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
#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

修改当前使用的JDK版本:sudo update-alternatives --config java
===================================================================

#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

once@once-home:/store/oab-java6$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-6-sun-1.6.0.43/bin/java 300
once@once-home:/store/oab-java6$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-6-sun-1.6.0.43/bin/javac 300
once@once-home:/store/oab-java6$ sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/java-6-sun-1.6.0.43/bin/javap 300
once@once-home:/store/oab-java6$ sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/java-6-sun-1.6.0.43/bin/javah 300
once@once-home:/store/oab-java6$ sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/java-6-sun-1.6.0.43/bin/jar 300
once@once-home:/store/oab-java6$ sudo update-alternatives --config java
阅读(1155) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Android新建一个lunch项(全志方案)

给主人留下些什么吧!~~