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 1FTfKv-0007SU-NJ for garchives@archives.gentoo.org; Wed, 12 Apr 2006 13:24: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 k3CDOvQX030431; Wed, 12 Apr 2006 13:24:57 GMT Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3CDOulT007827 for ; Wed, 12 Apr 2006 13:24:56 GMT Received: from 146-115-26-214.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com (HELO [192.168.1.110]) ([146.115.26.214]) by smtp02.lnh.mail.rcn.net with ESMTP; 12 Apr 2006 09:24:55 -0400 X-IronPort-AV: i="4.04,114,1144036800"; d="scan'208"; a="223913011:sNHT25513368" Message-ID: <443CFFBC.5000002@gentoo.org> Date: Wed, 12 Apr 2006 09:25:16 -0400 From: Joshua Nichols User-Agent: Mail/News 1.5 (X11/20060401) 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 To: Wiktor Wandachowicz CC: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Re: problems compiling junit References: <1144843758.6927.10.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 0b1623d5-a737-4325-8412-52822ed7f888 X-Archives-Hash: ccfd487a25ba1df067c438638c7b8a58 Wiktor Wandachowicz wrote: > Henrique Ferreiro writes: > > >> BUILD FAILED >> java.lang.UnsupportedClassVersionError: junit/framework/Test >> (Unsupported major.minor version 49.0) >> >> > > OTOH after some thought, this error simply means that while currently > you have 1.4 system JVM, some libraries were compiled with 1.5 JVM. > This is unfortunate, because Java 1.4 cannot use 1.5 classes (their > internal file format is different). > > Maybe you should look into java-1.5-fixer, previously posted by Joshua > on the same list? (http://article.gmane.org/gmane.linux.gentoo.java/839) > > It's also possible to rebuild the offending packages by hand, but you > will have to find them manually (it may take some time, though...) > The first step is to determine the packages that depends on Java and > then remerge them. I've done it once, so I know it's at least possible :) > > # emerge -avu gentoolkit ### If you don't have equery, that is > # equery depends virtual/jdk | tee ~/java-packages.txt | less > > HTH, > Wiktor > > java-1.5-fixer actually is installed now to /usr/bin/java-1.5-fixer. As for the problem you're having, it says in the documentation that if you were using 1.5 as a system vm, you will need to run java-1.5-fixer in order to get your system in tip-top-shape. Unfortunately, the script isn't flawless, as I previously mentioned on the list [1]. In particular, if something that depends is used by ant is compiled with 1.5, the script will choke up on it. The workaround is to try to figure out what classes are still compiled with 1.5, unmerge them all, then remerge them. [1] http://article.gmane.org/gmane.linux.gentoo.java/829 - Josh -- gentoo-java@gentoo.org mailing list