Archive for the JAVA Category

Note: Install sun-java6-jdk on Ubuntu 12.04

Posted in JAVA, Linux on 2012 年 05 月 26 日 by Kun-Yi

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)

廣告

關於JAVA 6.0

Posted in JAVA on 2005 年 09 月 11 日 by Kun-Yi
剛剛在使用 Freedom 瀏覽CSDN,發現了『快來搶先使用J2SE6.0』,裡面介紹了代號"野馬"(Mustang )的 J2SE 6.0

文章內提到了Java 6 在java.awt下,提供了SystemTrayTrayIcon兩個新類別,有了這兩個類別,以後就能直接使用Java 實現系統列的小程式,詳細的用法可以參考上面的連結

Mustang 預計在2006 的夏季釋出,從這裡看來Java 的活力與應用仍然非常活躍,值得投入更大的關注。