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 1FTdeO-0002fE-DD for garchives@archives.gentoo.org; Wed, 12 Apr 2006 11:36:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3CBaxCp010100; Wed, 12 Apr 2006 11:36:59 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 k3CBaw4x001388 for ; Wed, 12 Apr 2006 11:36:59 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FTdec-00057d-BP for gentoo-java@lists.gentoo.org; Wed, 12 Apr 2006 11:36:58 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FTdeZ-0003XB-4H for gentoo-java@gentoo.org; Wed, 12 Apr 2006 13:36:55 +0200 Received: from research.ics.p.lodz.pl ([212.51.220.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 13:36:55 +0200 Received: from siryes by research.ics.p.lodz.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 13:36:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-java@lists.gentoo.org From: Wiktor Wandachowicz Subject: [gentoo-java] Re: problems compiling junit Date: Wed, 12 Apr 2006 11:36:39 +0000 (UTC) Message-ID: References: <1144843758.6927.10.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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 212.51.220.189 (Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.8.0.1) Gecko/20060412 Firefox/1.5.0.1) Sender: news X-Archives-Salt: 7d07d943-622d-48c4-abe5-19536e2d1d38 X-Archives-Hash: 7ce5253970b4590740ff6934f88f8448 Henrique Ferreiro writes: > > I am using the migration overlay. After installing sun-jdk-1.4 and > sun-jdk-1.5 and setting 1.4 as system vm I have the following problem: > > localhost ~ # emerge -1 junit > Calculating dependencies ... done! > >>> Emerging (1 of 1) dev-java/junit-3.8.1-r1 to / ... > >>> Compiling source > in /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1 ... > /usr/bin/ant: line 161: arch: command not found > Buildfile: build.xml > > init: > > versiontag: > [copy] Copying 1 file > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner > [move] Moving 1 file > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner > > build: > > BUILD FAILED > java.lang.UnsupportedClassVersionError: junit/framework/Test > (Unsupported major.minor version 49.0) > Well, that's exactly the issue that the new Java handling should solve (compile time JVM version switching). In your previous post you've said that you have problems setting the generation-1 system VM. I suspect that there's something wrong with your setup, even though you might have followed the instructions closely... Maybe you could post the output of the following commands? # java-config-1 -L # java-config-2 -L # which java # java -version # echo ${PATH} # emerge -pv =sun-jdk-1.4* # emerge -pv =sun-jdk-1.5* # emerge --info That would clear the situation a bit. Wiktor -- gentoo-java@gentoo.org mailing list