65
Hopefully this blog will help you fellow minecraftians out there in the process of installing java on your specific linux distro!
To install Java, simply type this in terminal and press enter:
For Ubuntu 10.04 LTS and on, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. You must add these sources:
Some distros have the command "add-apt-repository" removed. If this is the case, you will need to add the python properties by running the following command:
Then you can proceed to add the source:
Use
First you have to add the Java license to make.conf to be able to emerge the JRE. Be sure to read the license and if you accept it add this into /etc/make.conf:
After this, we can emerge the JRE itself:
If you have other JREs installed use this to display them:
And then use this to set the JRE for either system or user:
Alternatively, you can visit java's website directly to download the Java package for Linux. Most distros work with this (either 32 or 64-bit). Instructions for the installation of those different packages are given on the site.
If during installation, it asks for a password, enter your password. If you get asked "Is this OK [Y/N]" Enter Y and press enter if required. Java should now be installed.
Please subscribe and give me an UP if this was helpful to you, comments are encouraged too!
Debian
To install Java, simply type this in terminal and press enter:
sudo apt-get install sun-java6-jre
Ubuntu
For Ubuntu 10.04 LTS and on, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. You must add these sources:
- For Ubuntu 10.04 LTS (Lucid Lynx):
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
- For Ubuntu 10.10 (Maverick Meerkat):
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
- For Ubuntu 11.04 (Natty Narwhal):
Some distros have the command "add-apt-repository" removed. If this is the case, you will need to add the python properties by running the following command:
sudo apt-get install python-software-properties
Then you can proceed to add the source:
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu natty partner"
- Then install the packages:
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java
openSUSE
Use
zypper in java-1_6_0-sun
Gentoo
First you have to add the Java license to make.conf to be able to emerge the JRE. Be sure to read the license and if you accept it add this into /etc/make.conf:
ACCEPT_LICENSE="dlj-1.1"
After this, we can emerge the JRE itself:
emerge -av dev-java/sun-jre-bin
If you have other JREs installed use this to display them:
eselect java-vm list
And then use this to set the JRE for either system or user:
eselect java-vm set system 1
Other Distros
Alternatively, you can visit java's website directly to download the Java package for Linux. Most distros work with this (either 32 or 64-bit). Instructions for the installation of those different packages are given on the site.
If during installation, it asks for a password, enter your password. If you get asked "Is this OK [Y/N]" Enter Y and press enter if required. Java should now be installed.
Please subscribe and give me an UP if this was helpful to you, comments are encouraged too!
Tags |
tools/tracking
29927
6
how-to-install-java-linux-29927
Create an account or sign in to comment.