public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Henrique Ferreiro <henrique.ferreiro@gmail.com>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java]  Re: problems compiling junit
Date: Wed, 12 Apr 2006 14:53:04 +0200	[thread overview]
Message-ID: <1144846384.6927.18.camel@localhost> (raw)
In-Reply-To: <loom.20060412T133024-5@post.gmane.org>

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@gentoo.org mailing list



  reply	other threads:[~2006-04-12 11:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 12:09 [gentoo-java] problems compiling junit Henrique Ferreiro
2006-04-12 11:36 ` [gentoo-java] " Wiktor Wandachowicz
2006-04-12 12:53   ` Henrique Ferreiro [this message]
2006-04-12 12:21     ` Wiktor Wandachowicz
2006-04-13  0:58       ` Henrique Ferreiro
2006-04-13  4:38         ` Joshua Nichols
2006-04-13  6:03           ` Jon Severinsson
2006-04-13 12:06             ` Henrique Ferreiro
2006-04-13 11:34               ` Jon Severinsson
     [not found]                 ` <1144932831.26742.8.camel@localhost>
2006-04-13 12:05                   ` Jon Severinsson
2006-04-13 14:07                     ` Henrique Ferreiro
2006-04-13 14:09                     ` Henrique Ferreiro
2006-04-14  1:29                       ` Joshua Nichols
2006-04-14 15:24                         ` Henrique Ferreiro
2006-04-14 14:47                           ` Joshua Nichols
2006-04-14 21:19                         ` Wiktor Wandachowicz
2006-04-12 11:51 ` Wiktor Wandachowicz
2006-04-12 13:25   ` Joshua Nichols

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1144846384.6927.18.camel@localhost \
    --to=henrique.ferreiro@gmail.com \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox