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:36:44
Message-Id: loom.20060412T133024-5@post.gmane.org
In Reply to: [gentoo-java] problems compiling junit by Henrique Ferreiro
1 Henrique Ferreiro <henrique.ferreiro@...> writes:
2
3 >
4 > I am using the migration overlay. After installing sun-jdk-1.4 and
5 > sun-jdk-1.5 and setting 1.4 as system vm I have the following problem:
6 >
7 > localhost ~ # emerge -1 junit
8 > Calculating dependencies ... done!
9 > >>> Emerging (1 of 1) dev-java/junit-3.8.1-r1 to /
10 ...
11 > >>> Compiling source
12 > in /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1 ...
13 > /usr/bin/ant: line 161: arch: command not found
14 > Buildfile: build.xml
15 >
16 > init:
17 >
18 > versiontag:
19 > [copy] Copying 1 file
20 > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
21 > [move] Moving 1 file
22 > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
23 >
24 > build:
25 >
26 > BUILD FAILED
27 > java.lang.UnsupportedClassVersionError: junit/framework/Test
28 > (Unsupported major.minor version 49.0)
29 >
30
31
32 Well, that's exactly the issue that the new Java handling should solve
33 (compile time JVM version switching). In your previous post you've said
34 that you have problems setting the generation-1 system VM. I suspect that
35 there's something wrong with your setup, even though you might have
36 followed the instructions closely...
37
38 Maybe you could post the output of the following commands?
39
40 # java-config-1 -L
41 # java-config-2 -L
42 # which java
43 # java -version
44 # echo ${PATH}
45 # emerge -pv =sun-jdk-1.4*
46 # emerge -pv =sun-jdk-1.5*
47 # emerge --info
48
49 That would clear the situation a bit.
50
51 Wiktor
52
53 --
54 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] Re: problems compiling junit Henrique Ferreiro <henrique.ferreiro@×××××.com>