Installing Java6 JDK on Ubuntu 12.04
2012-12-28 13:49
148 查看
转自:http://www.gaggl.com/2012/04/installing-java6-jdk-on-ubuntu-12-04/
UPDATE: [01-May-2012] It appears that this PPA repo is currently broken (does not allow to get GPG key and has unmet dependencies on x84_64). It appears that the install on i386 systems does work anyway if you ignore the GPG key error, but I wouldn’t install in that case as PPA installs are security risk enough without GPG errors.
UPDATE: [11-May-2012] The reason the PPA does not work is that it has been disabled by Ubuntu due to a licensing issue with (not hard to guess) Oracle. Flexion.org have however created a script (hosted on Github) to allow the automated update of Java 6 for those who still require it as a dependency.
Hat tip to Martin Wimpress from Flexion !
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)
Then when its finished, install java:
You can follow the installation process with:
Note: If you do not need Java 6 it’s much safer to stick to the current Oracle Java 7 release.
This is an update to the Java6 install on 11.10 since the previous PPA repository has not been updated. To install on Precise Pangolin you need to add the following repository
EDIT: [01-May-2012] since there seem to be many comments about the repo not working here’s the manual process (since I can’t find any working PPA that is actually maintained).
Download the Linux .bin install (32 or 64bit) from Oracle’s site Java Archive.
Note: you obviously need to also maintain the Java6 updated manually.
UPDATE: [01-May-2012] It appears that this PPA repo is currently broken (does not allow to get GPG key and has unmet dependencies on x84_64). It appears that the install on i386 systems does work anyway if you ignore the GPG key error, but I wouldn’t install in that case as PPA installs are security risk enough without GPG errors.
UPDATE: [11-May-2012] The reason the PPA does not work is that it has been disabled by Ubuntu due to a licensing issue with (not hard to guess) Oracle. Flexion.org have however created a script (hosted on Github) to allow the automated update of Java 6 for those who still require it as a dependency.
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.1/oab-java6.sh -O oab-java6.sh chmod +x oab-java6.sh sudo ./oab-java6.sh
Hat tip to Martin Wimpress from Flexion !
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
Note: If you do not need Java 6 it’s much safer to stick to the current Oracle Java 7 release.
This is an update to the Java6 install on 11.10 since the previous PPA repository has not been updated. To install on Precise Pangolin you need to add the following repository
sudo add-apt-repository ppa:flexiondotorg/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin
EDIT: [01-May-2012] since there seem to be many comments about the repo not working here’s the manual process (since I can’t find any working PPA that is actually maintained).
Download the Linux .bin install (32 or 64bit) from Oracle’s site Java Archive.
#change permissions to allow execute chmod a+x jdk-6u[current_version_number]-linux-i586.bin #run the installer file ./jdk-6u[current_version_number]-linux-i586.bin
Note: you obviously need to also maintain the Java6 updated manually.
相关文章推荐
- install jdk on ubuntu 12.04
- Install Java6 JDK on Ubuntu 12.04
- How to Install Oracle Java JDK 6/7/8 on Ubuntu 13.04 / 12.10 / 12.04
- Ubuntu_ install JDK on Ubuntu 12.04
- How to Install Oracle Java JDK on Ubuntu Linux
- ubuntu 12.04安装java jdk1.6
- Vim的Python编辑器详细配置过程 (Based on Ubuntu 12.04 LTS)
- ubuntu_Improve Power Usage on Ubuntu 12.04 and Prolong Laptop Battery Life
- Ubuntu 12.04 下jdk的安装和java环境配置
- How to install Sublime Text 2 on Ubuntu 12.04 (Unity)
- 升级 Vim 7.4 On Ubuntu 13.10, 13.04, 12.04, Linux...
- Ubuntu 12.04 JDK配置
- Ubuntu 12.04 Ruby on Rails + MYSQL 配置
- 【转】Ubuntu 12.04 安装JDK 8和Eclipse
- Vim的Python编辑器详细配置过程 (Based on Ubuntu 12.04 LTS)
- 解决Ubuntun 12.04编译Mesa10.3 WARNING: 'aclocal-1.14' is missing on your system
- Install JDK on Ubuntu
- Set Up Highcharts Export Server On Ubuntu Server 12.04: Step by Step
- [转载]How To Add Swap on Ubuntu 12.04
- wireshark install/build on Ubuntu 12.04