From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JUhXV-0008Gg-EV for garchives@archives.gentoo.org; Thu, 28 Feb 2008 12:07:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 007B4E062A; Thu, 28 Feb 2008 12:07:04 +0000 (UTC) Received: from smtp03.tky.fi (smtp03.tky.fi [82.130.63.73]) by pigeon.gentoo.org (Postfix) with SMTP id A6969E062A for ; Thu, 28 Feb 2008 12:07:03 +0000 (UTC) Received: from [82.130.46.219] ([82.130.46.219]) by smtp03.tky.fi (SMSSMTP 4.1.9.35) with SMTP id M2008022814070031188 ; Thu, 28 Feb 2008 14:07:00 +0200 Message-ID: <47C6A3E1.2070307@gentoo.org> Date: Thu, 28 Feb 2008 14:06:57 +0200 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Thunderbird 2.0.0.9 (X11/20071124) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: Marat Radchenko CC: Gentoo Java Subject: Re: [gentoo-java] Cross compiling for older platform versions References: <47C5EB11.3080301@sun.com> <47C61661.5050303@gentoo.org> In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: url=http://users.tkk.fi/~praty/public.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig34AAE5C5C26C4D737CB8F5E2" X-Archives-Salt: 86b413b6-5703-4e60-b9d1-e40049627bd8 X-Archives-Hash: be75903b804756a53c8951f1a719247e This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig34AAE5C5C26C4D737CB8F5E2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Marat Radchenko kirjoitti: > Hi, Gentoo Java Team. >=20 > I'd like to share my thoughts on backwards-compatible compilation. As=20 > you already said, specifying -source and -target is not enough because = > different JDKs have different rt.jar. Solution is very simple - you jus= t=20 > need to specify -bootclasspath and point to rt.jar of target jre. The=20 > only problem (he-he) is that you need to get it=20 > somewhere. I see two options: >=20 > 1) Install target jre > 2) Have separate package with rt.jar only. >=20 > Hope this info will be useful. >=20 > With best regards, > Marat Radchenko >=20 Please don't top post. I already tried to explain that we don't=20 necessarily need to make our jars work perfectly with older JDKs we only = need the older bytecode so that we are able to compile things. If you=20 really want backwards compatible jars just use *=3Dsun-jdk-1.4 in=20 jdk.conf. Should probably document this on the Java Guide. Regards, Petteri --------------enig34AAE5C5C26C4D737CB8F5E2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHxqPkcxLzpIGCsLQRAtPGAJsH4cKmfl595uz4rnmGrwgeBdzjiACfbp69 8bSX5h2cJGANXtndjWpcnos= =eZqr -----END PGP SIGNATURE----- --------------enig34AAE5C5C26C4D737CB8F5E2-- -- gentoo-java@lists.gentoo.org mailing list