Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139489 - eclipse-sdk-3.0.1-r2 does not find sun-jdk-1.5
Summary: eclipse-sdk-3.0.1-r2 does not find sun-jdk-1.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 15:24 UTC by Kevin O'Gorman
Modified: 2006-07-12 20:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin O'Gorman 2006-07-06 15:24:35 UTC
I have sun-jdk-1.5, as recognized by java-config, but eclipse-sdk-3.0.1-r2 will
not emerge because "Active Java VM too old".

How new does it have to be?

++ kevin



Entire emerge session (about 1 screen long):

treat ~ # emerge -av eclipse-sdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-util/eclipse-sdk-3.0.1-r2  USE="gnome gtk kde motif -mozilla" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Emerging (1 of 1) dev-util/eclipse-sdk-3.0.1-r2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking eclipse-sourceBuild-srcIncluded-3.0.1.zip ;-)
/usr/portage/eclass/java-utils.eclass: line 94: [: -ge: unary operator expected
/usr/portage/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected
Detected a JDK < 1.4.2
 * This package requires a Java VM version >= 1 4 2
 * Please use java-config -S to set the correct one

!!! ERROR: dev-util/eclipse-sdk-3.0.1-r2 failed.
Call stack:
  ebuild.sh, line 1561:   Called dyn_setup
  ebuild.sh, line 668:   Called pkg_setup
  eclipse-sdk-3.0.1-r2.ebuild, line 41:   Called java-utils_ensure-vm-version-ge '1' '4' '2'
  java-utils.eclass, line 77:   Called die

!!! Active Java VM too old
!!! If you need support, post the topmost build error, and the call stack if relevant.

treat ~ # java-config -f
sun-jdk-1.5
treat ~ # 






emerge --info:
treat ~ # emerge --info
Portage 2.1.1_pre1-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r7-kosmanor i686)
=================================================================
System uname: 2.6.16-gentoo-r7-kosmanor i686 Intel(R) XEON(TM) CPU 1.80GHz
Gentoo Base System version 1.6.15
ccache version 2.3 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://fido.online.kz/gentoo/pub http://gentoo.inf.elte.hu/ ftp://ftp.isu.edu.tw/pub/Linux/Gentoo http://gentoo.scphost.com"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d acl acpi aim alsa apache2 apm arts avi bash-completion bcmath berkdb bitmap-fonts calendar caps cdr cli crypt cscope ctype cups dbm doc dri dvd dvdr eds emboss encode ethereal exif fastcgi foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile icq imagemagik imap imlib ipv6 isdnlog java joystick jpeg junit kde kerberos libg++ libwww mad mbox mcal mikmod mime mmap mmx motif mp3 mpeg mpi msession mysql ncurses nis nls nsplugin odbc offensive ogg oggvorbis openal opengl oscar oss pam pcre pdflib perl pic png posix postgres ppds pppd python qt qt3 qt4 quicktime readline reflection ruby samba sdl session snmp sockets spell spl sse ssl svga sysvipc tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb vorbis xml2 xmms xorg xpm xv yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux userland_GNU video_cards_ati video_cards_vga video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

treat ~ #
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-07-06 18:30:27 UTC
What specitic version of sun-jdk are you using?
Comment 2 Kevin O'Gorman 2006-07-06 19:57:52 UTC
(In reply to comment #1)
> What specitic version of sun-jdk are you using?
> 

I'm using 1.5.0.07

treat ~ # java-config -f
sun-jdk-1.5
treat ~ # eix sun-jdk
* dev-java/sun-jdk
     Available versions:  ~1.2.2.017 1.3.1.17 1.4.2.10-r2 ~1.4.2.12 1.5.0.07
     Installed:           1.5.0.07
     Homepage:            http://java.sun.com/j2se/1.5.0/
     Description:         Sun's J2SE Development Kit, version 1.5.0.07


Found 1 matches
treat ~ #   
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-07-12 20:54:25 UTC
1.5.0.07 is only available by using the new Java system. The generation-1 system VM is used to compile packages that are already in the tree, and as such, a 1.4 JDK is required.

Please make sure you've followed the upgrade guide completely:
http://www.gentoo.org/proj/en/java/java-upgrade.xml

You may also be interested in the latest version of eclipse, 3.2, which has testing keywords.