java JRE upgrade 10 does not work
Bram Kuijper
a.l.w.kuijper at rug.nl
Mon Jan 22 17:20:53 UTC 2007
Hi all,
I upgraded my Java runtime environment to update 10, but ubuntu
apparently does not use the new version, even after running sudo
update-alternatives --config java. It still uses update 9, instead.
Here is what I did:
I followed the following instructions to create a package from sun's
binary files:
http://ubuntuguide.org/wiki/Ubuntu_Edgy#How_to_install_JRE_v5.0_Update_10
then, I successfully installed the package:
bram at bram-laptop:~/Desktop$ sudo dpkg -i
sun-j2re1.5_1.5.0+update10_i386.deb
Selecting previously deselected package sun-j2re1.5.
(Reading database ... 205261 files and directories currently installed.)
Unpacking sun-j2re1.5 (from sun-j2re1.5_1.5.0+update10_i386.deb) ...
Setting up sun-j2re1.5 (1.5.0+update10) ...
after that, I altered the options using update-alternatives:
sudo update-alternatives --config java
There are 4 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
* 1 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
2 /usr/bin/gij-wrapper-4.1
+ 3 /usr/lib/jvm/java-gcj/jre/bin/java
4 /usr/lib/j2re1.5-sun/bin/java
Press enter to keep the default[*], or type selection number: 4
I again checked my options:
There are 4 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
2 /usr/bin/gij-wrapper-4.1
+ 3 /usr/lib/jvm/java-gcj/jre/bin/java
* 4 /usr/lib/j2re1.5-sun/bin/java
Even then, java -version showed still the old version:
java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
What's wrong?
More information about the ubuntu-users
mailing list