ADD THE SLIDER CODE HERE

2014年4月11日 星期五

install java on ubuntu

Hi all,
Let us install sun-java6-jdk on ubuntu.

On Ubuntu 10.04:
Now This are the standard method to install it.
Open your terminal by Ctrl+Alt+T
$sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$sudo apt-get update
$sudo apt-get install sun-java6-jdk
Now I guess You will encounter with this problem in last step.
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate

Now the solution to this is:
$sudo add-apt-repository ppa:ferramroberto/java
$sudo apt-get update
$sudo apt-get install sun-java6-jdk
And finally you have installed sun java6 on your ubuntu 10.04

On Ubuntu 12.04:
To install sun java6 on ubuntu 12.04 follow this steps:
Open your terminal by Ctrl+Alt+T
Enter following commands and you will get sun java6 installed on your system.
$wget https://github.com/flexiondotorg/oab-java6/raw/0.2.6/oab-java.sh -O oab-java.sh
This will download the script to install sun java.
After that provide executable permission to that script.
$chmod +x oab-java.sh
And after that execute the script
$sudo ./oab-java.sh
I don’t know who is the author of this script, but hats off to that guy, that made our work so easy to install java.
Well, Now a little bit of patience, so that this script downloads some packages required.
After that execute installation commands:
$sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-fonts
Enjoy…


出自 http://rathodpratik.wordpress.com/2012/11/17/install-java6-on-ubuntu/

沒有留言:

張貼留言