Gentoo Archives: gentoo-java

From: Henrique Ferreiro <henrique.ferreiro@×××××.com>
To: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Re: problems compiling junit
Date: Wed, 12 Apr 2006 11:53:35
Message-Id: 1144846384.6927.18.camel@localhost
In Reply to: [gentoo-java] Re: problems compiling junit by Wiktor Wandachowicz
1 O Mér, 12-04-2006 ás 11:36 +0000, Wiktor Wandachowicz escribiu:
2 > Henrique Ferreiro <henrique.ferreiro@...> writes:
3 >
4 > >
5 > > I am using the migration overlay. After installing sun-jdk-1.4 and
6 > > sun-jdk-1.5 and setting 1.4 as system vm I have the following problem:
7 > >
8 > > localhost ~ # emerge -1 junit
9 > > Calculating dependencies ... done!
10 > > >>> Emerging (1 of 1) dev-java/junit-3.8.1-r1 to /
11 > ...
12 > > >>> Compiling source
13 > > in /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1 ...
14 > > /usr/bin/ant: line 161: arch: command not found
15 > > Buildfile: build.xml
16 > >
17 > > init:
18 > >
19 > > versiontag:
20 > > [copy] Copying 1 file
21 > > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
22 > > [move] Moving 1 file
23 > > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner
24 > >
25 > > build:
26 > >
27 > > BUILD FAILED
28 > > java.lang.UnsupportedClassVersionError: junit/framework/Test
29 > > (Unsupported major.minor version 49.0)
30 > >
31 >
32 >
33 > Well, that's exactly the issue that the new Java handling should solve
34 > (compile time JVM version switching). In your previous post you've said
35 > that you have problems setting the generation-1 system VM. I suspect that
36 > there's something wrong with your setup, even though you might have
37 > followed the instructions closely...
38 >
39 > Maybe you could post the output of the following commands?
40 >
41 > # java-config-1 -L
42 [sun-jdk-1.4.2.10] "Sun JDK
43 1.4.2.10" (/etc/env.d/java/20sun-jdk-1.4.2.10) *
44 > # java-config-2 -L
45 1) Sun JDK 1.4.2.10 [sun-jdk-1.4]
46 (/usr/share/java-config-2/vm/sun-jdk-1.4)
47 *) Sun JDK 1.5.0.06 [sun-jdk-1.5]
48 (/usr/share/java-config-2/vm/sun-jdk-1.5)
49 > # which java
50 /usr/bin/java
51 localhost ~ # ls -l /usr/bin/java
52 lrwxrwxrwx 1 root root 22 Abr 6 17:00 /usr/bin/java
53 -> /usr/bin/run-java-tool
54 > # java -version
55 java version "1.5.0_06"
56 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
57 Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
58 > # echo ${PATH}
59 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/opt/sun-jdk-1.4.2.10/bin:/opt/sun-jdk-1.4.2.10/jre/bin:/opt/sun-jdk-1.4.2.10/jre/javaws
60 > # emerge -pv =sun-jdk-1.4*
61 [ebuild NSF ] dev-java/java-sdk-docs-1.4.2 33,591 kB
62 [ebuild Rf ] dev-java/sun-jdk-1.4.2.10-r13 USE="X alsa doc*
63 nsplugin* -jce" 0 kB [5]
64
65 Total size of downloads: 33,591 kB
66 Portage overlays:
67 [1] /usr/portage/local/layman/portage
68 [2] /usr/portage/local/layman/bmg-main
69 [3] /usr/portage/local/layman/gentopia
70 [4] /usr/portage/local/layman/java-experimental
71 [5] /usr/portage/local/layman/migration
72 > # emerge -pv =sun-jdk-1.5*
73 [ebuild Rf ] dev-java/sun-jdk-1.5.0.06-r13 USE="X alsa doc nsplugin
74 -jce" 0 kB [5]
75 > # emerge --info
76 Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-suspend2 i686)
77 =================================================================
78 System uname: 2.6.16-suspend2 i686 Intel(R) Pentium(R) M processor
79 1.60GHz
80 Gentoo Base System version 1.12.0_pre17
81 ccache version 2.4 [enabled]
82 dev-lang/python: 2.4.2-r1
83 sys-apps/sandbox: 1.2.17
84 sys-devel/autoconf: 2.13, 2.59-r7
85 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
86 sys-devel/binutils: 2.16.1-r2
87 sys-devel/libtool: 1.5.22
88 virtual/os-headers: 2.6.11-r3
89 ACCEPT_KEYWORDS="x86 ~x86"
90 AUTOCLEAN="yes"
91 CBUILD="i686-pc-linux-gnu"
92 CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
93 CHOST="i686-pc-linux-gnu"
94 CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
95 CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
96 CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
97 DISTDIR="/usr/portage/distfiles"
98 FEATURES="autoconfig buildpkg candy ccache collision-protect confcache
99 digest distlocks fixpackages metadata-transfer sandbox sfperms strict
100 test userpriv usersandbox"
101 GENTOO_MIRRORS="http://distfiles.gentoo.org
102 http://distro.ibiblio.org/pub/linux/distributions/gentoo"
103 LANG="gl_ES.UTF-8"
104 LC_ALL="gl_ES.UTF-8"
105 LINGUAS="gl es"
106 MAKEOPTS="-j2"
107 PKGDIR="/usr/portage/packages"
108 PORTAGE_TMPDIR="/var/tmp"
109 PORTDIR="/usr/portage"
110 PORTDIR_OVERLAY="/usr/portage/local/layman/portage /usr/portage/local/layman/bmg-main /usr/portage/local/layman/gentopia /usr/portage/local/layman/java-experimental /usr/portage/local/layman/migration /usr/portage/local/layman/chewi /usr/portage/local/layman/initng /usr/portage/local/layman/gnome-experimental"
111 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
112 USE="x86 X acpi alsa apm avahi avi bash-completion beagle bzip2 cairo
113 cli ctype cups dba dbus dri dvd dvdr eds emboss encode esd exif expat
114 fastbuild fbcon firefox foomaticdb force-cgi-redirect fortran ftp gd
115 gdbm gif gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 gtkhtml
116 hal imlib isdnlog jpeg lcms libg++ libnotify libwww mad memlimit mikmod
117 mmx mmxext mp3 mpeg ncurses nls nptl ogg opengl pcre pdf pdflib pic png
118 posix pppd quicktime readline samba session simplexml soap sockets spell
119 spl sse sse2 ssl svg test tokenizer truetype truetype-fonts type1-fonts
120 udev unicode vorbis xml xsl xv zlib elibc_glibc input_devices_evdev
121 input_devices_mouse input_devices_keyboard input_devices_synaptics
122 kernel_linux linguas_gl linguas_es userland_GNU video_cards_ati"
123 Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
124
125 > That would clear the situation a bit.
126 >
127 > Wiktor
128 >
129
130 --
131 gentoo-java@g.o mailing list

Replies

Subject Author
[gentoo-java] Re: problems compiling junit Wiktor Wandachowicz <siryes@×××××.com>