Note: Install sun-java6-jdk on Ubuntu 12.04

see Install Sun Java 6 JRE and JDK from .deb packages and follow the steps

cd ~/
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh
sudo apt-get install sun-java6-jdk

Now, the version is 1.6.0_43

java -version
java version “1.6.0_43″
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)

Update:

currently the JDK is jdk_6u43 & use oab-java.sh to download and install, but still need manual modify oab-java.sh (now 0.24 version has fixed the issues, so not need to modify it)

1. wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh -O oab-java.sh
2. edit oab-java.sh
2. search “Getting previous releases download page"
3. replace URL to “http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html " , it is jdk_6u39 ~ u43 download page
4. added download JCE package, see https://github.com/ladios/oab-java6/commit/a04fad40831c076ff69c226ca4801b42dc908592
5. okay, you can run oab-java.sh Now

or (click get my modify file)

result:

sudo ./oab-java.sh

oab-java.sh v0.2.3 – Create a local ‘apt’ repository for Sun Java 6 and/or Oracle Java 7 packages.

Copyright (c) Martin Wimpress, http://flexion.org. MIT License

By running this script to download Java you acknowledge that you have
read and accepted the terms of the Oracle end user license agreement.

* http://www.oracle.com/technetwork/java/javase/terms/license/

If you want to see what this is script is doing while it is running then execute
the following from another shell:

tail -f /home/kunyi/oab-java.sh.log

[x] Installing Java build requirements success
[x] Making build directories success
[x] Removing clones of http://github.com/rraptorr/sun-java6 success
[x] Cloning http://github.com/rraptorr/sun-java6 success
[x] Checking out v6.43-1 success
[x] Getting Java SE download page success
[x] Getting previous releases download page success
[x] Downloading jdk-6u43-linux-i586.bin : 68.45 MB success
[x] Symlinking jdk-6u43-linux-i586.bin success
[x] Downloading jdk-6u43-linux-x64.bin : 68.7 MB success
[x] Symlinking jdk-6u43-linux-x64.bin success
[x] Getting Java Cryptography Extension download page success
[x] Downloading jce_policy-6.zip : 8.89 KB success
[x] Symlinking jce_policy-6.zip success
[x] Updating the changelog success
[x] Building the packages success
[x] Moving the packages success
[x] Creating Packages.gz file success
[x] Creating Release file success
[x] Signing the ‘Release’ file success
[x] Exporting public key success
[x] Adding public key success
[x] Update package list success
All done!

~$ javac -version

javac 1.6.0_43
~$ java -version

java version “1.6.0_43″
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)

廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s

%d 位部落客按了讚: