PDA

View Full Version : [SOLVED] Java is missing



lrisan
Jan 19th 2011, 12:49 PM
Hi all!

After a fast, smooth and elegant installation of Kubuntu 10.10 on a new Dell Inspirion ZINO, turning this computer into a very elegant machine, I have only some minor problems.

One problem: I have no Java in my Firefox, and I can't find it in the repositories. I did this:

> java -version

Got this:

gcj-4.4-jre-headless
gcj-4.5-jre-headless
openjdk-6-jre-headless


made sure that these repositories was commented in:

deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main

did this:

> sudo apt-get install sun-java6-jdk

Got the message that the package did not exist. Found no "sun-java" in any repository.


I wonder if some political issues with Oracle has made it unavailable? But I'm puzzled, because I search the forum here, and I find no one else who have this problem.

Any ideas on what to do?

thanks! (next problem in another topic)

jeremy1701
Jan 19th 2011, 01:41 PM
I found this:

http://www.adamsofineti.com/2010/12/how-to-install-java-on-kubuntu-10-10/

Looks like you're missing one step


sudo apt-get update

lrisan
Jan 19th 2011, 02:21 PM
Thanks for your reply. Did not have to do "update", because my extra-repositories were commented in (as I asked them to be during the installation-process).

-lars

jeremy1701
Jan 19th 2011, 02:58 PM
If you search for java in kpackageit, does it come up? Perhaps it's not called sun-java6-jdk anymore, kpackageit should find it with just 'java' or probably even 'jdk' as a search.

lrisan
Jan 19th 2011, 10:01 PM
I tried to search kpackageit and it was not there.

But then, FABULOUSLY, I searched the web a bit more and found this web page [1], that tells me that Java has been out of Ubuntu, but is now back in, but in the PARTNER-repository, not in the EXTRAS-repository.


So, all [2] should rewrite his otherwise nice page: Add (or uncomment) this line:


deb http://archive.canonical.com/ubuntu/ maverick partner

... not extras, as written in [2].

Thanks all, case solved.

[1] http://www.omgubuntu.co.uk/2010/10/java-returns-to-ubuntu-10-10/
[2] http://www.adamsofineti.com/2010/12/how-to-install-java-on-kubuntu-10-10/