LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Java DK 6 (https://www.linuxquestions.org/questions/linux-software-2/installing-java-dk-6-a-895973/)

dwsmith 08-06-2011 06:46 PM

Installing Java DK 6
 
I am trying to install JDK 6 but I am not succeeding.

The file is in /home/dustin/Downloads
So in the terminal I have been typing:
chmod +x filename.bin (enter)
sudo ./filename.bin (enter)

Java Agreement
y (enter)

Now, what do I type to install java6-bin java6-jre?

Every time I try something and check it with java -version, I get:

The program 'java' can be found in the following packages:
* gcj-4.4-jre-headless (You will have to enable component called 'main')
* openjdk-6-jre-headless (You will have to enable component called 'main')
* cacao (You will have to enable component called 'universe')
* gij-4.3 (You will have to enable component called 'universe')
* jamvm (You will have to enable component called 'universe')
* kaffe (You will have to enable component called 'universe')

Thanks for your help.

XavierP 08-06-2011 06:52 PM

Which distro are you using? It is likely that your package manager can install the correct version for you.

Welcome to LQ.

dwsmith 08-06-2011 07:01 PM

Quote:

Originally Posted by XavierP (Post 4435599)
Which distro are you using? It is likely that your package manager can install the correct version for you.

Welcome to LQ.

It is update 22 Linux i586. I have tried sudo apt-get install sun-java6-bin sun-java6-jre and that didn't work. It is very frustrating. This is on Ubuntu 9.10 the Karmic Koala release.

xwjitftu 08-06-2011 09:38 PM

download openjdk from the software center. just type it in on the search bar.

dwsmith 08-06-2011 09:47 PM

Quote:

Originally Posted by xwjitftu (Post 4435659)
download openjdk from the software center. just type it in on the search bar.

There are 500 pages to go through. Do you have anything else to narrow down the search?

andrewthomas 08-06-2011 10:31 PM

Ubuntu 9.10 is no longer supported.

You should update to a supported release.

https://wiki.ubuntu.com/Releases

https://help.ubuntu.com/community/EOLUpgrades

xwjitftu 08-09-2011 12:42 PM

it's the one titled OpenJDK Java 6 Runtime. It's the first result in the ubuntu software center. And you should also update to ubuntu 11.04


All times are GMT -5. The time now is 07:32 AM.