Gentoo Archives: gentoo-java

From: Wiktor Wandachowicz <siryes@×××××.com>
To: gentoo-java@l.g.o
Subject: [gentoo-java] Re: problems compiling junit
Date: Wed, 12 Apr 2006 11:51:09
Message-Id: loom.20060412T134202-32@post.gmane.org
In Reply to: [gentoo-java] problems compiling junit by Henrique Ferreiro
1 Henrique Ferreiro <henrique.ferreiro@...> writes:
2
3 >
4 > BUILD FAILED
5 > java.lang.UnsupportedClassVersionError: junit/framework/Test
6 > (Unsupported major.minor version 49.0)
7 >
8
9 OTOH after some thought, this error simply means that while currently
10 you have 1.4 system JVM, some libraries were compiled with 1.5 JVM.
11 This is unfortunate, because Java 1.4 cannot use 1.5 classes (their
12 internal file format is different).
13
14 Maybe you should look into java-1.5-fixer, previously posted by Joshua
15 on the same list? (http://article.gmane.org/gmane.linux.gentoo.java/839)
16
17 It's also possible to rebuild the offending packages by hand, but you
18 will have to find them manually (it may take some time, though...)
19 The first step is to determine the packages that depends on Java and
20 then remerge them. I've done it once, so I know it's at least possible :)
21
22 # emerge -avu gentoolkit ### If you don't have equery, that is
23 # equery depends virtual/jdk | tee ~/java-packages.txt | less
24
25 HTH,
26 Wiktor
27
28 --
29 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] Re: problems compiling junit Joshua Nichols <nichoj@g.o>