[csw-maintainers] Java... again!
Trygve Laugstøl
trygvel at opencsw.org
Sun Nov 16 12:21:32 CET 2008
Dagobert Michelsen wrote:
> Hi Trygve,
>
> Am 15.11.2008 um 19:42 schrieb Trygve Laugstøl:
>> Some comments:
>>
>> * Can the JDKs be installed under /opt/csw/jdk to reduce the /opt/csw
>> clutter. That also more similar to how it is installed under /usr
>
> Sure.
>
>> * I like the way Sun does it with their "instances". If my package
>> depend on Java 5 or 6 I would like to default the JDK path to
>> /opt/csw/jdk/instance/jdk1.5.0.
>>
>> $ ls -l /usr/jdk /usr/jdk/instances/
>> /usr/jdk:
>> total 10
>> drwxr-xr-x 4 root bin 512 Feb 29 2008 instances
>> lrwxrwxrwx 1 root other 18 Nov 5 16:30 jdk1.5.0_16 ->
>> instances/jdk1.5.0
>> lrwxrwxrwx 1 root other 18 Nov 5 16:43 jdk1.6.0_10 ->
>> instances/jdk1.6.0
>> lrwxrwxrwx 1 root other 11 Nov 5 16:43 latest ->
>> jdk1.6.0_10
>> drwxr-xr-x 7 root bin 512 Nov 5 16:46 packages
>>
>> /usr/jdk/instances/:
>> total 4
>> drwxr-xr-x 9 root bin 512 Nov 5 16:49 jdk1.5.0
>> drwxr-xr-x 9 root bin 512 Nov 5 16:51 jdk1.6.0
>
> But why /usr/jdk/instances/jdkxxx instead of /usr/jdk/jdkxxxx?
Dunno, got to ask Sun about that :)
> 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
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).
--
Trygve
More information about the maintainers
mailing list