From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FTpEU-0004zw-BZ for garchives@archives.gentoo.org; Wed, 12 Apr 2006 23:58:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3CNx2lT028782; Wed, 12 Apr 2006 23:59:02 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3CNx1js000946 for ; Wed, 12 Apr 2006 23:59:02 GMT Received: from uproxy.gmail.com ([66.249.92.168]) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FTpEj-00041e-Ag for gentoo-java@lists.gentoo.org; Wed, 12 Apr 2006 23:59:01 +0000 Received: by uproxy.gmail.com with SMTP id m2so1003798ugc for ; Wed, 12 Apr 2006 16:59:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=ZS1yRGZh3jaIb54v/gJwiNjU+BTLino95iwBrwZ0J4KjKND0miRUk4Rw7EpdeemzRJ3igrV4cMr9N+rvfVdzaPISOzRgN1a858+xCmGhW2/1iObGqnCul3i4qj7PlB6ZB74roUGPqvzd23D1TiQ3QAVxO5r2mgVE52HSQxVkK9A= Received: by 10.66.225.4 with SMTP id x4mr491389ugg; Wed, 12 Apr 2006 16:59:00 -0700 (PDT) Received: from portatil ( [83.43.192.53]) by mx.gmail.com with ESMTP id j1sm244370ugf.2006.04.12.16.58.56; Wed, 12 Apr 2006 16:59:00 -0700 (PDT) Subject: Re: [gentoo-java] Re: problems compiling junit From: Henrique Ferreiro To: gentoo-java@lists.gentoo.org In-Reply-To: References: <1144843758.6927.10.camel@localhost> <1144846384.6927.18.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Thu, 13 Apr 2006 02:58:09 +0200 Message-Id: <1144889890.10780.0.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k3CNx2lr028782 X-Archives-Salt: af55cdeb-954c-4d5b-a3a5-e904f4ce4930 X-Archives-Hash: 844fc284eb2f4589c80449e59e1ef40a O M=C3=A9r, 12-04-2006 =C3=A1s 12:21 +0000, Wiktor Wandachowicz escribiu: > Henrique Ferreiro writes: >=20 > > > # java-config-1 -L > > [sun-jdk-1.4.2.10] "Sun JDK > > 1.4.2.10" (/etc/env.d/java/20sun-jdk-1.4.2.10) * >=20 > While the above is correct, the latter... >=20 > > > # java-config-2 -L > > 1) Sun JDK 1.4.2.10 [sun-jdk-1.4] > > (/usr/share/java-config-2/vm/sun-jdk-1.4) > > *) Sun JDK 1.5.0.06 [sun-jdk-1.5] > > (/usr/share/java-config-2/vm/sun-jdk-1.5) >=20 > ... explains a bit - you probably shouldn't have a SYSTEM JVM > set to Java 1.5 as of today. You can do so freely on your regular > user account. The the migration document shoud warm about this. Anyway, I did=20 java-config-2 -S sun-jdk-1.4 Now: $ java -version java version "1.4.2_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) But ant-core continues to build with java-1.5. >=20 > > > # which java > > /usr/bin/java > > localhost ~ # ls -l /usr/bin/java > > lrwxrwxrwx 1 root root 22 Abr 6 17:00 /usr/bin/java > > -> /usr/bin/run-java-tool > > > # java -version > > java version "1.5.0_06" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) >=20 > The above confirms that fact. >=20 > > > # echo ${PATH} > > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin= : > > /usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/opt/sun-jdk-1.4.2.10/bin: > > /opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws >=20 > Here the /usr/bin/java symliked to run-java-tool takes precedence > over the /opt/sun-jdk-1.4.2.10/bin (this is expected). >=20 > > > # emerge -pv =3Dsun-jdk-1.4* > > [ebuild NSF ] dev-java/java-sdk-docs-1.4.2 33,591 kB > > [ebuild Rf ] dev-java/sun-jdk-1.4.2.10-r13 USE=3D"X alsa doc* > > nsplugin* -jce" 0 kB [5] > >=20 > > Total size of downloads: 33,591 kB > > Portage overlays: > > [1] /usr/portage/local/layman/portage > > [2] /usr/portage/local/layman/bmg-main > > [3] /usr/portage/local/layman/gentopia > > [4] /usr/portage/local/layman/java-experimental > > [5] /usr/portage/local/layman/migration >=20 > A nice set of overlays ;) > Most probably you've stepped onto a problem similar to the one already > discussed (mixing java-experimental and migration overlays is not alway= s > healthy), see here: > http://thread.gmane.org/gmane.linux.gentoo.java/825/focus=3D825 >=20 > However, setting your preferred gen-2 system VM and rebuilding the offe= nsive > packages should help. You can try to find them by using: >=20 > # emerge -pvet junit | less >=20 > But spotting said packages requires a bit of patience and a good eye :) > However, the situation is fixable, either manually or maybe through > the java-1.5-fixer (http://article.gmane.org/gmane.linux.gentoo.java/83= 9) >=20 > BTW, if you choose to try the java-1.5-fixer script, could you please > describe your experiences? I never used this (never needed it, though) > but I'm curious how this could help in such situation. >=20 > Wiktor >=20 --=20 gentoo-java@gentoo.org mailing list