Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-java
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-java@g.o
From: Henrique Ferreiro <henrique.ferreiro@...>
Subject: Re: Re: problems compiling junit
Date: Wed, 12 Apr 2006 14:53:04 +0200
O Mér, 12-04-2006 ás 11:36 +0000, Wiktor Wandachowicz escribiu:
> Henrique Ferreiro <henrique.ferreiro@...> writes:
> 
> > 
> > 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:
> > 
> > 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
> > 
> > init:
> > 
> > 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
> > 
> > build:
> > 
> > BUILD FAILED
> > java.lang.UnsupportedClassVersionError: junit/framework/Test
> > (Unsupported major.minor version 49.0)
> > 
> 
> 
> 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 that
> there's something wrong with your setup, even though you might have
> followed the instructions closely...
> 
> Maybe you could post the output of the following commands?
> 
> # 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:/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
> # emerge -pv =sun-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="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 =sun-jdk-1.5*
[ebuild   Rf  ] dev-java/sun-jdk-1.5.0.06-r13  USE="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)
=================================================================
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="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
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"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy ccache collision-protect confcache
digest distlocks fixpackages metadata-transfer sandbox sfperms strict
test userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="gl_ES.UTF-8"
LC_ALL="gl_ES.UTF-8"
LINGUAS="gl es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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.
> 
> Wiktor
> 

-- 
gentoo-java@g.o mailing list


Replies:
Re: problems compiling junit
-- Wiktor Wandachowicz
References:
problems compiling junit
-- Henrique Ferreiro
Re: problems compiling junit
-- Wiktor Wandachowicz
Navigation:
Lists: gentoo-java: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: problems compiling junit
Next by thread:
Re: problems compiling junit
Previous by date:
Re: problems compiling junit
Next by date:
Re: problems compiling junit


Updated Jun 17, 2009

Summary: Archive of the gentoo-java mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.