Linux-Noob Forums
How do I install java - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: How do I install java (/thread-358.html)



How do I install java - littleslayer15 - 2011-07-19

Hi I am bran new to this website so sorry if this was already asked but I looked and I couldn't find it so I want to know how I can install java on Linux like the topic description said I am using Google chrome (I don't know if that makes a difference) and I am also using Ubuntu I am the biggest noob ever I didn't even know how to install Linux on my computer my brother had to so the more information you can give me the better.



How do I install java - inittux - 2011-07-20


Welcome Bran :)

 

Try this:

 

Open the Terminal and type this:

 



Code:
sudo apt-get install sun-java6-jre sun-java6-plugin







How do I install java - littleslayer15 - 2011-08-03


Thanks but it didn't work after I typed in my password in terminal this it what it said

 

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package sun-java6-jre 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-jre has no installation candidate

 

also sorry for me not replying sooner I thought I would get a email when I got a reply but I never did




How do I install java - inittux - 2011-08-03


try:

 

sudo apt-get install sun-java6-jre

 

or log into root first:

 

su -

password

 

apt-get install sun-java6-jre




How do I install java - inittux - 2011-08-03

wat version of ubuntu are you running?



How do I install java - inittux - 2011-08-03


for ubuntu 10.04 try this source:

 

The first step is to add the necessary repositories to the /etc/apt/sources.list file. So open that file up with your favorite text editor and add the following line to the bottom of that file:

 

to get that done do the following: sudo nano /etc/apt/sources.list

 

 

deb http://archive.canonical.com/ lucid partner

 

Now to update apt, issue the command:

 

sudo apt-get update

 

Once apt has completed its update, you are ready to install. The actual installation command is:

 

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts




How do I install java - littleslayer15 - 2011-08-03

I am using ubuntu 10.04 and I got up to where I have to update the thing after I put the text in I copy and pasted the command you gave me but nothing happens



How do I install java - inittux - 2011-08-04


You are doing something wrong then. I'll try and take you step by step:

 

1. sudo nano /etc/apt/sources.list

2. add the following line at the bottom of this file(you can select it with the mouse and copy/past it): deb http://archive.canonical.com/ lucid partner

3. press ctrl+o to save

4. sudo apt-get update or sudo aptitude update

5. sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

 

Then you're done




How do I install java - littleslayer15 - 2011-08-05

Thank you so much it installed perfectly you were such a big help I cannot thank you enough if there is a rep or thanks thing on the website please tell me you deserve it.



How do I install java - inittux - 2011-08-07

no problem, glad it works now :)