Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am a windows user and wonder how do i go abt installing java on ubuntu (vbox)

i have tried

sudo apt-get install sun-java6-bin

got

couldnt find package

sudo apt-get install sun-java6-jre

got

sun-java6-jre has no installation candidate

i also tried the .bin file

sudo chmod 755 .bin ./.bin

seems like it done its things without errors

but

java -version

gives

the program 'java' can be found in the following package ...

share|improve this question
    
Total duplicate. – Shiki Jul 23 '10 at 16:15
    
possible duplicate of Java and Ubuntu – Shiki Jul 23 '10 at 16:16
up vote 6 down vote accepted

Sun Java has been moved to the Partner repository in Ubuntu 10.04 (Lucid Lynx).

Add the repository by doing this:

add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Then you can do:

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .