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 1FTduh-0002NG-1N for garchives@archives.gentoo.org; Wed, 12 Apr 2006 11:53:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3CBrn5p028816; Wed, 12 Apr 2006 11:53:49 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3CBrmEc001433 for ; Wed, 12 Apr 2006 11:53:48 GMT Received: from nproxy.gmail.com ([64.233.182.189]) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FTdut-00025o-SR for gentoo-java@lists.gentoo.org; Wed, 12 Apr 2006 11:53:48 +0000 Received: by nproxy.gmail.com with SMTP id m19so947255nfc for ; Wed, 12 Apr 2006 04:53:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=FdI1R/J3BXws75N4ZxS52QvH6akFcpg1+/isIRMHI1xHhk91UFXGGgGhryjvZnOLx4hjjuw5XWJM07pgCq8+kPJXufm3ugipzzrxXh2aQV8nEvqtqOSbtBOaryy0c+Vi5+hHmQhpaEHNrq7e72uAC63fgRKOt5mEs3vGQXt7HjQ= Received: by 10.49.38.4 with SMTP id q4mr328075nfj; Wed, 12 Apr 2006 04:53:47 -0700 (PDT) Received: from portatil ( [83.34.21.28]) by mx.gmail.com with ESMTP id k23sm110294nfc.2006.04.12.04.53.43; Wed, 12 Apr 2006 04:53:46 -0700 (PDT) Subject: Re: [gentoo-java] Re: problems compiling junit From: Henrique Ferreiro To: gentoo-java@lists.gentoo.org In-Reply-To: References: <1144843758.6927.10.camel@localhost> Content-Type: text/plain; charset=UTF-8 Date: Wed, 12 Apr 2006 14:53:04 +0200 Message-Id: <1144846384.6927.18.camel@localhost> 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 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k3CBrn6F028816 X-Archives-Salt: 07b6a487-cf65-4fdf-a7c0-d598bda95831 X-Archives-Hash: 212b5a4b69a26f7c6a57bf48de31ffc3 O M=C3=A9r, 12-04-2006 =C3=A1s 11:36 +0000, Wiktor Wandachowicz escribiu: > Henrique Ferreiro writes: >=20 > >=20 > > I am using the migration overlay. After installing sun-jdk-1.4 and > > sun-jdk-1.5 and setting 1.4 as system vm I have the following problem= : > >=20 > > localhost ~ # emerge -1 junit > > Calculating dependencies ... done! > > >>> Emerging (1 of 1) dev-java/junit-3.8.1-r1 to / > ... > > >>> Compiling source > > in /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1 ... > > /usr/bin/ant: line 161: arch: command not found > > Buildfile: build.xml > >=20 > > init: > >=20 > > versiontag: > > [copy] Copying 1 file > > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner > > [move] Moving 1 file > > to /var/tmp/portage/junit-3.8.1-r1/work/junit3.8.1/junit/runner > >=20 > > build: > >=20 > > BUILD FAILED > > java.lang.UnsupportedClassVersionError: junit/framework/Test > > (Unsupported major.minor version 49.0) > >=20 >=20 >=20 > Well, that's exactly the issue that the new Java handling should solve > (compile time JVM version switching). In your previous post you've said > that you have problems setting the generation-1 system VM. I suspect th= at > there's something wrong with your setup, even though you might have > followed the instructions closely... >=20 > Maybe you could post the output of the following commands? >=20 > # java-config-1 -L [sun-jdk-1.4.2.10] "Sun JDK 1.4.2.10" (/etc/env.d/java/20sun-jdk-1.4.2.10) * > # java-config-2 -L 1) Sun JDK 1.4.2.10 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4) *) Sun JDK 1.5.0.06 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) > # which java /usr/bin/java localhost ~ # ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 Abr 6 17:00 /usr/bin/java -> /usr/bin/run-java-tool > # java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > # echo ${PATH} /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/us= r/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 > # emerge -pv =3Dsun-jdk-1.4* [ebuild NSF ] dev-java/java-sdk-docs-1.4.2 33,591 kB [ebuild Rf ] dev-java/sun-jdk-1.4.2.10-r13 USE=3D"X alsa doc* nsplugin* -jce" 0 kB [5] Total size of downloads: 33,591 kB Portage overlays: [1] /usr/portage/local/layman/portage [2] /usr/portage/local/layman/bmg-main [3] /usr/portage/local/layman/gentopia [4] /usr/portage/local/layman/java-experimental [5] /usr/portage/local/layman/migration > # emerge -pv =3Dsun-jdk-1.5* [ebuild Rf ] dev-java/sun-jdk-1.5.0.06-r13 USE=3D"X alsa doc nsplugin -jce" 0 kB [5] > # emerge --info Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2= .6.16-suspend2 i686) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D System uname: 2.6.16-suspend2 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.12.0_pre17 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS=3D"x86 ~x86" AUTOCLEAN=3D"yes" CBUILD=3D"i686-pc-linux-gnu" CFLAGS=3D"-O2 -march=3Dpentium-m -mtune=3Dpentium-m -pipe" CHOST=3D"i686-pc-linux-gnu" CONFIG_PROTECT=3D"/etc /usr/kde/2/share/config /usr/kde/3/share/config /u= sr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK=3D"/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" CXXFLAGS=3D"-O2 -march=3Dpentium-m -mtune=3Dpentium-m -pipe" DISTDIR=3D"/usr/portage/distfiles" FEATURES=3D"autoconfig buildpkg candy ccache collision-protect confcache digest distlocks fixpackages metadata-transfer sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS=3D"http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG=3D"gl_ES.UTF-8" LC_ALL=3D"gl_ES.UTF-8" LINGUAS=3D"gl es" MAKEOPTS=3D"-j2" PKGDIR=3D"/usr/portage/packages" PORTAGE_TMPDIR=3D"/var/tmp" PORTDIR=3D"/usr/portage" PORTDIR_OVERLAY=3D"/usr/portage/local/layman/portage /usr/portage/local/l= ayman/bmg-main /usr/portage/local/layman/gentopia /usr/portage/local/laym= an/java-experimental /usr/portage/local/layman/migration /usr/portage/loc= al/layman/chewi /usr/portage/local/layman/initng /usr/portage/local/layma= n/gnome-experimental" SYNC=3D"rsync://rsync.gentoo.org/gentoo-portage" USE=3D"x86 X acpi alsa apm avahi avi bash-completion beagle bzip2 cairo cli ctype cups dba dbus dri dvd dvdr eds emboss encode esd exif expat fastbuild fbcon firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 gtkhtml hal imlib isdnlog jpeg lcms libg++ libnotify libwww mad memlimit mikmod mmx mmxext mp3 mpeg ncurses nls nptl ogg opengl pcre pdf pdflib pic png posix pppd quicktime readline samba session simplexml soap sockets spell spl sse sse2 ssl svg test tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis xml xsl xv zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard input_devices_synaptics kernel_linux linguas_gl linguas_es userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS > That would clear the situation a bit. >=20 > Wiktor >=20 --=20 gentoo-java@gentoo.org mailing list