Re: Re: JDK used for compiling

Petteri Räty <[email protected]>
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
Sven Köhler kirjoitti:
>> On Sun, 2007-11-18 at 20:06 +0100, Sven Köhler wrote:
>>>>> I was conviced, that ebuilds always use the lowest JDK version possible.
>>>>> But it seems, that packages use the System VM - which is 1.6 in my case.
>>>>> But 1.5 is also installed.
>>>> Ebuilds compile source/target based on the lowest JDK version specified
>>>> in the ebuild. Which vm is used is controlled by by the ebuild and/or
>>>> the env. But most times that's restricted just to a version that
>>>> satisfied a virtual. Not specific vms.
>>> Oh good! I was hoping to hear that.
>>>
>>> But here, on my machine with default config, i'm compiling
>>> commons-daemon, and it says "using sun-jdk-1.6".
>>> Oh, and even if i set the system VM to 1.5, it still uses sun-jdk-1.6.
>>> Strange! Look:
>> SYSTEM VM != BUILD VM
>>
>>> Why that? I don't find any particular line in commons-daemon's ebuild
>>> which specifies, that it should use JDK 1.6 instead of JDK 1.5.
>>> The dependencies are >=virtual/jdk-1.4 and such.
>> http://www.gentoo.org/doc/en/java.xml#doc_chap5
> 
> OK, so i don't understand.
> 
> Why does commons-daemon use sun-jdk-1.6 to compile while sun-jdk-1.5* is
> installed too?
> 

The default choice is the highest version of the default vm set for the
arch.

betelgeuse@pena /usr/share/java-config-2/config $ cat jdk-defaults.conf
# This files contain the default support jdk's
*= sun-jdk blackdown-jdk ibm-jdk-bin jrockit-jdk-bin

On x86 and amd64 this means that the highest version of sun-jdk
installed is used. But yeah I think it would be nicer to use the system
vm in case jdk.conf does not specify anything.

Regards,
Petteri
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQLzzcxLzpIGCsLQRAkQXAJ41+b0aGhP2vA74zpOPHg8f0hXw7QCcCj0D
XJvDRaM7HjgEYyrmGtCjakE=
=F+hg
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.