[csw-maintainers] Java... again!

Dagobert Michelsen dam at opencsw.org
Sun Nov 16 21:29:07 CET 2008


Hi Trygve,

Am 16.11.2008 um 12:21 schrieb Trygve Laugstøl:
> Dagobert Michelsen wrote:
>> Why is there the symlink?
>>
>> And: Should this also be true for JREs?\
>
> IMO yes, but I just tried to download all the 1.4, 1.5 and 1.6 JREs  
> and
> they don't have pkg installers for any of them.
>
> Phil asked if the directory should be "java" and that what what I
> originally wanted too, but Sun uses /usr/java as a symlink to the  
> latest
> java, just like /usr/jdk/latest.
>
> So this is what I want:
>
> /opt/csw/jdk/jdk1.5.0_16
> /opt/csw/jdk/instances/jdk1.5.0 -> ../jdk1.5.0_16
>
> /opt/csw/jdk/jdk1.6.0_10
> /opt/csw/jdk/instances/jdk1.6.0 -> ../jdk1.5.0_10
>
> And for the JREs:
>
> /opt/csw/jre/jdk1.5.0_16
> /opt/csw/jre/instances/jdk1.5.0 -> ../jdk1.5.0_16
>
> /opt/csw/jre/jdk1.6.0_10
> /opt/csw/jre/instances/jdk1.6.0 -> ../jdk1.5.0_10

Sun does it just opposite:

root at csw [global]:/usr/jdk > ls -la
total 14
drwxr-xr-x   4 root     bin          512 Aug 18 18:09 .
drwxr-xr-x  39 root     sys         1024 Aug 19 11:29 ..
drwxr-xr-x   3 root     bin          512 Aug 18 17:07 instances
lrwxrwxrwx   1 root     other          7 Aug 18 17:07 j2sdk1.4.2_16 - 
 > ../j2se
lrwxrwxrwx   1 root     other         18 Aug 18 18:09 jdk1.5.0_16 ->  
instances/jdk1.5.0
lrwxrwxrwx   1 root     other         11 Aug 18 18:09 latest ->  
jdk1.5.0_16
drwxr-xr-x   8 root     bin          512 Aug 18 17:19 packages

The files in instances/ and links in jdk/.

> I wouldn't mind having a "latest" symlink too, but then we need a  
> way to
> figure out if a package is "newer" than another (like, if I install
> CSWjdk6 and then CSWjdk5, I don't want the symlink to be overwritten).

Is it really useful to have a just-the-latest-I-don't-care-Java?
I would imagine it would be best to have an apache-like configuration:
The Java software maintainers (e. g. Tomcat) chooses the build jre
and depends on that. The version is now 1.4.2, should that be jdk14 or
jdk142?
James, any advice?


Best regards

   -- Dago




More information about the maintainers mailing list