LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   how to get Java (in a Debian-based distro) (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/how-to-get-java-in-a-debian-based-distro-758371/)

newbiesforever 09-29-2009 12:53 AM

how to get Java (in a Debian-based distro)
 
I had been unable to get the Java Runtime Environment working for my online classroom, which was serious because I'm in graduate school. In thread http://www.linuxquestions.org/questi...ething-757868/ , I received advice about the problems with Icedtea and about how to download Java from the Sun website.
The latest Java straight from the Sun site didn't work for me, but I just discovered that I didn't need it (or Icedtea, I guess) anyway. Java 6, downloadable from the Debian repositories using Synaptic, does the job. I saw it in the repositories, but apparently never downloaded all the exact items I needed.
To get Java with Synaptic, download three items (but select only two, because one is a dependency and will be downloaded automatically): sun-java6-jre (Synaptic will automatically download sun-java6-bin with this), and sun-java6-plugin.
As soon as Synaptic has downloaded and installed these, go to or reload the page that requires Java; it will now work correctly. Restarting your browser is not necessary.

Ha...after five weeks of awkward workarounds for my inability to use Java in Firefox, I win.

repo 09-30-2009 05:33 PM

I always do
Code:

aptitude install sun-java6-jre sun-java6-fonts sun-java6-plugin
update-java-alternatives --set java-6-sun



All times are GMT -5. The time now is 07:54 PM.