I was trying to install eclipse-sdk on a fresh Gentoo install and it failed on ant-eclipse-ecj 3.4 with an error about class versions. Reproducible: Always Steps to Reproduce: 1. emerge =dev-java/ant-eclipse-ecj-3.4 Actual Results: * Using: blackdown-jdk-1.4.2 >>> Unpacking source... >>> Unpacking ecjsrc-3.4.zip to /var/tmp/portage/dev-java/ant-eclipse-ecj-3.4/wo rk >>> Source unpacked in /var/tmp/portage/dev-java/ant-eclipse-ecj-3.4/work >>> Compiling source in /var/tmp/portage/dev-java/ant-eclipse-ecj-3.4/work ... org/eclipse/jdt/core/JDTCompilerAdapter.java:34: cannot access org.eclipse.jdt.c ore.compiler.CharOperation bad class file: /usr/share/eclipse-ecj-3.4/lib/ecj.jar(org/eclipse/jdt/core/comp iler/CharOperation.class) class file has wrong version 50.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpa th. import org.eclipse.jdt.core.compiler.CharOperation; ^ 1 error * * ERROR: dev-java/ant-eclipse-ecj-3.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3846: Called ejavac '-classpath' '/u sr/share/ant-core/lib/ant-launcher.jar:/usr/share/ant-core/lib/ant.jar:/usr/shar e/ant-core/lib/ant-bootstrap.jar:/usr/share/eclipse-ecj-3.4/lib/ecj.jar' 'org/ec lipse/jdt/core/JDTCompilerAdapter.java' 'org/eclipse/jdt/internal/antadapter/Ant AdapterMessages.java' * environment, line 962: Called die * The specific snippet of code: * ${compiler_executable} ${javac_args} "${@}" || die "ejavac fa iled" * The die message: * ejavac failed * * If you need support, post the topmost build error, and the call sta ck if relevant. * A complete build log is located at '/var/tmp/portage/dev-java/ant-e clipse-ecj-3.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-jav a/ant-eclipse-ecj-3.4/temp/environment'. * !!! When you file a bug report, please include the following information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2. 03" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac" and of course, the output of emerge --info Expected Results: emerge the package successfully Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9500_@_2.53GHz-with-glibc2.2.5 Timestamp of tree: Thu, 22 Jan 2009 13:35:01 +0000 app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.4-r1 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.lorenb.net/gentoo-portage" USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="intel vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Never mind; found had the wrong system VM set.
What exactly did you do ? Because I'm having the same problem but I can't seem to find a way to work around it.
# java-config --set-system-vm=sun-jdk-1.6