Java 6 update 1 runtime install

Asked by amingus on 2007-05-02

I have my Java 6 JRE loaded. I now run into " your java is not current", meaning it doesn't have update 1 installed. Also when I go to Sun's website to verify, it says I have java 1.4.2 installed. I did the java config from the command line and it declares I have Java 6 installed. How do I get update 1 to Java 6 installed?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
amingus
Solved:
2007-05-03
Last query:
2007-05-03
Last reply:
2007-05-03
Javier Jardón (jjardon) said : #1

Hello amingus,

Follow the steps of this page: https://help.ubuntu.com/community/Java

amingus (amingus) said : #2

I did as the directions explained. After finishing I ran java -version.

anthony@Samwise:~$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

Sun website says I still do not have most current, download Java 6 Update 1....

I am trying to make Pogo.com work for my wife so I can switch her machine over to Ubuntu also. (That will be two more M$ boxes converted....)

Best amingus (amingus) said : #3

Follow the steps of this page: https://help.ubuntu.com/community/Java

I just ran it again. It now works.??? Why? But I am happy it works!

Netsurfer (box952) said : #4

I've discovered a method to update Sun Java. The follow is for the Java6 Update 2, but I think it applies to update 1 also.

I tried myself to update from Java1.6.0 to Java 1.6 update 2 (which fixes also a Compiz-Fusion dislplay bug).

The procedure is very simple.

First remove any reference to old java vm using
sudo apt-get remove sun-java*

then donwloading jre-6u2-linux-i586.bin from www.sun.com to your home dir
and execute the following script to install...

sudo mkdir /usr/lib/jvm
sudo mv ~/jre-6u2-linux-i586.bin /usr/lib/jvm
cd /usr/lib/jvm
sudo chmod +x jre-6u2-linux-i586.bin
sudo ./jre-6u2-linux-i586.bin

Now you have a dir /usr/lib/jvm/jre1.6.0_02 and you can also delete jre-6u2-linux-i586.bin file.

Configuring symbolic links to Java update 2.

cd /usr/bin
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/java java
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/java_vm java_vm
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/javaws javaws
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/jcontrol jcontrol
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/keytool keytool
cd /usr/lib/firefox/plugins
sudo ln -sf /usr/lib/jvm/jre1.6.0_02/plugin/i386/ns7/libjavapl ugin_oji.so libjavaplugin_oji.so

Verify if all is OK using command:
$ java -version
results...
$ java version "1.6.0_02"
$ Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
$ Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)

Finaly, edit the file /etc/jvm putting the complete path to java at the top of the list as follow:
$ sudo gedit /etc/jvm

...
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.

/usr/lib/jvm/jre1.6.0_02 <<<------- new path
/usr/lib/jvm/java-gcj
/usr/lib/jvm/ia32-java-1.5.0-sun
/usr/lib/jvm/java-1.5.0-sun
/usr
...

The Java Control Panel start with "jcontrol". You can create a menu item to do that task.

That's all.
Bye

amingus (amingus) said : #5

Thanks for the info I will try this.

Netsurfer wrote:
> Your question #6026 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/6026
>
> Netsurfer posted a new comment:
> I've discovered a method to update Sun Java. The follow is for the Java6
> Update 2, but I think it applies to update 1 also.
>
> I tried myself to update from Java1.6.0 to Java 1.6 update 2 (which
> fixes also a Compiz-Fusion dislplay bug).
>
> The procedure is very simple.
>
> First remove any reference to old java vm using
> sudo apt-get remove sun-java*
>
> then donwloading jre-6u2-linux-i586.bin from www.sun.com to your home dir
> and execute the following script to install...
>
> sudo mkdir /usr/lib/jvm
> sudo mv ~/jre-6u2-linux-i586.bin /usr/lib/jvm
> cd /usr/lib/jvm
> sudo chmod +x jre-6u2-linux-i586.bin
> sudo ./jre-6u2-linux-i586.bin
>
> Now you have a dir /usr/lib/jvm/jre1.6.0_02 and you can also delete jre-
> 6u2-linux-i586.bin file.
>
> Configuring symbolic links to Java update 2.
>
> cd /usr/bin
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/java java
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/java_vm java_vm
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/javaws javaws
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/jcontrol jcontrol
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/bin/keytool keytool
> cd /usr/lib/firefox/plugins
> sudo ln -sf /usr/lib/jvm/jre1.6.0_02/plugin/i386/ns7/libjavapl ugin_oji.so libjavaplugin_oji.so
>
> Verify if all is OK using command:
> $ java -version
> results...
> $ java version "1.6.0_02"
> $ Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> $ Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
>
> Finaly, edit the file /etc/jvm putting the complete path to java at the top of the list as follow:
> $ sudo gedit /etc/jvm
>
> ...
> # This file defines the default system JVM search order. Each
> # JVM should list their JAVA_HOME compatible directory in this file.
> # The default system JVM is the first one available from top to
> # bottom.
>
> /usr/lib/jvm/jre1.6.0_02 <<<------- new path
> /usr/lib/jvm/java-gcj
> /usr/lib/jvm/ia32-java-1.5.0-sun
> /usr/lib/jvm/java-1.5.0-sun
> /usr
> ...
>
> The Java Control Panel start with "jcontrol". You can create a menu item
> to do that task.
>
> That's all.
> Bye
>
> You received this question notification because you are a direct
> subscriber of the question.
>
>

russtyrjc (russell-cresswell1) said : #6

Also works on java 3 update 4