Bug#609731: java-wrapper doesn't consider java-alternatives jvm
Gabriele Giacone
1o5g4r8o at gmail.com
Tue Jan 11 23:37:12 UTC 2011
Package: java-wrappers
Version: 0.1.16
Why doesn't find_java_runtime() also look for jvm pointed by
java-alternatives?
On 01/11/2011 11:42 PM, Joachim Zobel wrote:
> Am Dienstag, den 11.01.2011, 23:02 +0100 schrieb Gabriele Giacone:
>> Because without parameters and unless you set JAVA_HOME,
>> find_java_runtime()
>> looks first for /usr/lib/jvm/default-java link then for first
>> among /usr/lib/jvm/*.
>
> Ah, that explains it.
>
> jo at vostro:~$ ls -l /usr/lib/jvm/
> insgesamt 20
> drwxr-xr-x 5 root root 4096 9. Aug 2008 java-1.5.0-gcj-4.3-1.5.0.0
> drwxr-xr-x 6 root root 4096 22. Okt 21:20 java-1.5.0-gcj-4.4
> lrwxrwxrwx 1 root root 23 15. Feb 2009 java-1.5.0-sun ->
> java-1.5.0-sun-1.5.0.17
> drwxr-xr-x 6 root root 4096 15. Feb 2009 java-1.5.0-sun-1.5.0.17
> lrwxrwxrwx 1 root root 14 25. Mär 2010 java-1.6.0-openjdk ->
> java-6-openjdk
> drwxr-xr-x 7 root root 4096 19. Dez 16:02 java-6-openjdk
> lrwxrwxrwx 1 root root 19 18. Okt 22:27 java-6-sun ->
> java-6-sun-1.6.0.22
> drwxr-xr-x 8 root root 4096 18. Okt 22:28 java-6-sun-1.6.0.22
> lrwxrwxrwx 1 root root 26 9. Aug 2008 java-gcj ->
> java-1.5.0-gcj-4.3-1.5.0.0
> lrwxrwxrwx 1 root root 18 25. Mär 2010 java-gcj-4.4 ->
> java-1.5.0-gcj-4.4
>
> Just curious, why does find_java_runtime() not
> use /etc/alternatives/java ?
More information about the pkg-java-maintainers
mailing list