Re: Re: JDK used for compiling

"William L. Thomson Jr." <[email protected]>
Newsgroups gmane.linux.gentoo.java
Organization Gentoo
Message-ID <[email protected]>
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

-- 
William L. Thomson Jr.
Gentoo/Java
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBHQK5JPrChP8zZLyYRAlhzAJ9x+BCiU93Vxpz7e62VsXNCaev7fwCggUKx
kgSaNAM4d78s8zD9ppp0srA=
=OLj2
-----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.