Java version not what I installed
ubantu001 at gmail.com
Wed Mar 8 01:43:15 UTC 2006
Found the answer to my question :-) It is:
sudo update-alternatives --config java
and select the version you want. Did that and now I get;
pjt at pjtlaptop:~$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
pjt at pjtlaptop:~$
I am happy :-)
On 3/8/06, Paul Thompson <ubantu001 at gmail.com> wrote:
> I have just installed the jdk-1_5_0_06-linux-i586.bin using fakroot
> etc to make the deb. That went fine. Then I did:
> pjt at pjtlaptop:~$ sudo dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb
> Selecting previously deselected package sun-j2sdk1.5.
> (Reading database ... 105944 files and directories currently installed.)
> Unpacking sun-j2sdk1.5 (from sun-j2sdk1.5_1.5.0+update06_i386.deb) ...
> Setting up sun-j2sdk1.5 (1.5.0+update06) ...
> That also worked just fine when I do:
> pjt at pjtlaptop:~$ java -version
> java version "1.5.0_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
> pjt at pjtlaptop:~$
> It shows (as you can see) that it is jre 1.5.0_05. I expect to see sdk
> 1.5.0_06 or something along those lines. As the SDK appears to have
> been installed it would appear that I need to tell Ubuntu where to
> look. I am still very much a Linux newby so help would be most
More information about the ubuntu-users