is java installed correctly? firefox says "nope"

NoOp glgxg at sbcglobal.net
Fri Mar 28 15:59:50 UTC 2008


On 03/27/2008 06:05 PM, thufir wrote:
> On Tue, 25 Mar 2008 10:39:26 -0300, Derek Broughton wrote:
> 
> 
>> Then you're ahead of me   Java works for me in both Firefox and
>> Konqueror, but www.java.com insists I don't have java installed!
> 
> 
> You don't get:
> 
> Verifying Java Version
> 
> Oops! You don't have the recommended Java installed.
> Your Java version is Version 6 Update 3. Please click the button below to 
> get the recommended Java for your computer.  
> 
> 
> It should be 6.5 instead of 6.3, but I don't think it really matters...
> 
> 
> -Thufir
> 
> 

I keep this bookmarked:

http://ubuntuforums.org/showthread.php?t=76702j

So, for this new 6.5 version (modified):

Now go to Sun's website http://java.sun.com and download
jre-6u5-linux-i586.bin.

Then run the following commands from the terminal:

First install the required packages:
sudo apt-get install fakeroot java-package java-common
Create the Deb file for the install:
fakeroot make-jpkg jre-6u5-linux-i586.bin
Install The deb file
sudo dpkg -i sun-j2re1.6_1.6.0+update5_i386.deb
Now make Sun's java the default by running this command and selecting  it.
sudo update-alternatives --config java

$ sudo update-alternatives --config java

There are 4 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
*         1    /usr/lib/jvm/java-6-sun/jre/bin/java
          2    /usr/bin/gij-4.2
          3    /usr/bin/gij-4.1
 +        4    /usr/lib/j2re1.6-sun/bin/java <== this is the new one

Press enter to keep the default[*], or type selection number: 4
Using `/usr/lib/j2re1.6-sun/bin/java' to provide `java'.
$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

Close your browser & restart, then test again at
http://www.java.com/en/download/installed.jsp

And it should detect 1.6.0_5:

Verified Java Version

Congratulations!

You have the recommended Java installed (Version 6 Update 5).





More information about the ubuntu-users mailing list