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 12:21:50
Message-Id: loom.20060412T135838-528@post.gmane.org
In Reply to: Re: [gentoo-java] Re: problems compiling junit by Henrique Ferreiro
1 Henrique Ferreiro <henrique.ferreiro@...> writes:
2
3 > > # java-config-1 -L
4 > [sun-jdk-1.4.2.10] "Sun JDK
5 > 1.4.2.10" (/etc/env.d/java/20sun-jdk-1.4.2.10) *
6
7 While the above is correct, the latter...
8
9 > > # java-config-2 -L
10 > 1) Sun JDK 1.4.2.10 [sun-jdk-1.4]
11 > (/usr/share/java-config-2/vm/sun-jdk-1.4)
12 > *) Sun JDK 1.5.0.06 [sun-jdk-1.5]
13 > (/usr/share/java-config-2/vm/sun-jdk-1.5)
14
15 ... explains a bit - you probably shouldn't have a SYSTEM JVM
16 set to Java 1.5 as of today. You can do so freely on your regular
17 user account.
18
19 > > # which java
20 > /usr/bin/java
21 > localhost ~ # ls -l /usr/bin/java
22 > lrwxrwxrwx 1 root root 22 Abr 6 17:00 /usr/bin/java
23 > -> /usr/bin/run-java-tool
24 > > # java -version
25 > java version "1.5.0_06"
26 > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
27 > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
28
29 The above confirms that fact.
30
31 > > # echo ${PATH}
32 > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:
33 > /usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/opt/sun-jdk-1.4.2.10/bin:
34 > /opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws
35
36 Here the /usr/bin/java symliked to run-java-tool takes precedence
37 over the /opt/sun-jdk-1.4.2.10/bin (this is expected).
38
39 > > # emerge -pv =sun-jdk-1.4*
40 > [ebuild NSF ] dev-java/java-sdk-docs-1.4.2 33,591 kB
41 > [ebuild Rf ] dev-java/sun-jdk-1.4.2.10-r13 USE="X alsa doc*
42 > nsplugin* -jce" 0 kB [5]
43 >
44 > Total size of downloads: 33,591 kB
45 > Portage overlays:
46 > [1] /usr/portage/local/layman/portage
47 > [2] /usr/portage/local/layman/bmg-main
48 > [3] /usr/portage/local/layman/gentopia
49 > [4] /usr/portage/local/layman/java-experimental
50 > [5] /usr/portage/local/layman/migration
51
52 A nice set of overlays ;)
53 Most probably you've stepped onto a problem similar to the one already
54 discussed (mixing java-experimental and migration overlays is not always
55 healthy), see here:
56 http://thread.gmane.org/gmane.linux.gentoo.java/825/focus=825
57
58 However, setting your preferred gen-2 system VM and rebuilding the offensive
59 packages should help. You can try to find them by using:
60
61 # emerge -pvet junit | less
62
63 But spotting said packages requires a bit of patience and a good eye :)
64 However, the situation is fixable, either manually or maybe through
65 the java-1.5-fixer (http://article.gmane.org/gmane.linux.gentoo.java/839)
66
67 BTW, if you choose to try the java-1.5-fixer script, could you please
68 describe your experiences? I never used this (never needed it, though)
69 but I'm curious how this could help in such situation.
70
71 Wiktor
72
73 --
74 gentoo-java@g.o mailing list

Replies

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