Which version of Sun Java have I got?
Alan Pope
popey at ubuntu.com
Tue Mar 8 21:29:11 UTC 2011
On 8 March 2011 21:11, Colin Law <clanlaw at googlemail.com> wrote:
> In another thread it was pointed out that we should be using Sun Java
> 6.24 rather than 20 as this had security issues. When I type
> java -version
> I get
> java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
> OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
>
That's openjdk, not the Sun build.
> But when I do
> sudo apt-cache policy sun-java6-jre (or bin or jdk or whatever)
> I get
> sun-java6-jre:
> Installed: 6.24-1build0.10.10.1
That's the Sun one.
So you have both installed but you have your system default set to the
OpenJDK one.
If you would like to switch to have the default being Sun JVM then see
this page:-
https://help.ubuntu.com/community/Java
Specifically the section titled 'Choosing the default Java to use'
Cheers,
Al.
More information about the ubuntu-users
mailing list