Which version of Sun Java have I got?

Johnny Rosenberg gurus.knugum at gmail.com
Tue Mar 8 21:34:21 UTC 2011


Den 2011-03-08 22:24:39 skrev Scott Davies <code-poet at hotmail.com>:

> Hi,
>
> I think your confusion is regarding the difference between the JDK and  
> the
> JRE.
>
> The JDK (Java Development Kit) is the SDK.  By the looks of things, you
> have JDK 1.6, revision or patch 20.
>
> The JRE (Java Runtime Environment) is needed only for running Java code,
> like in a client environment.  By the looks of things, you have JRE 6  
> with
> revision or patch 24.
>
> When you are developing and compiling code, the JDK will use javac  
> version
> 1.6.20.
>
> In this case, you'll want to update both.
>
> Cheers,
>
> Scott
>
> On 11-03-08 4:11 PM, "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)
>>
>> 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
>>  Candidate: 6.24-1build0.10.10.1
>>  Version table:
>> *** 6.24-1build0.10.10.1 0
>>        500 http://archive.canonical.com/ubuntu/ maverick/partner i386
>> Packages
>>        100 /var/lib/dpkg/status
>>
>> I am not aware of having installed it other than from the repository.
>> Can anyone help with my confusion?
>>
>> Colin

What do this web page say about your Java installation?
http://www.java.com/sv/download/help/testvm.xml


-- 
Kind regards

Johnny Rosenberg




More information about the ubuntu-users mailing list