Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java fubar: java_config.Errors.InvalidVMError
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
VanDan
Guru
Guru


Joined: 30 Sep 2002
Posts: 586
Location: Australia

PostPosted: Sun Oct 14, 2007 5:13 am    Post subject: Java fubar: java_config.Errors.InvalidVMError Reply with quote

Code:
metabox ~ # java-config -l 
Traceback (most recent call last):
  File "/usr/bin/java-config-2", line 13, in <module>
    from java_config.EnvironmentManager import EnvironmentManager
  File "/usr/share/java-config-2/pym/java_config/EnvironmentManager.py", line 444, in <module>
    EnvironmentManager = EnvironmentManager()
  File "/usr/share/java-config-2/pym/java_config/EnvironmentManager.py", line 35, in __init__
    self.load_active_vm()
  File "/usr/share/java-config-2/pym/java_config/EnvironmentManager.py", line 103, in load_active_vm
    raise InvalidVMError
java_config.Errors.InvalidVMError
metabox ~ #


This is a fresh install. I've emerged blackdown-jdk 1.4.2.03-r16 ( twice ). I have very little idea what's happening here. I'm just trying to install other things that need java. They all fail with the above error. I'm on AMD64.

Code:
metabox ~ # emerge --info
Portage 2.1.3.12 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r2 x86_64)
=================================================================
System uname: 2.6.22-suspend2-r2 x86_64 AMD Turion(tm) 64 Mobile Technology MT-40
Timestamp of tree: Sun, 14 Oct 2007 05:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.4.3-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.1.12/"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage/local/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 acl acpi administrator alsa amd64 audiofile bash-completion beagle berkdb bitmap-fonts bittorrent blender-game bluetooth bonjour bonobo branding bzip2 cairo cardbus cdaudio cdda cddb cdio cdparanoia cdr cdrom cdsound cli cracklib crypt css cups curl curlwrappers cursors daap dbus devhelp divx djvu dnd dnotify dri dv dvd dvdnav dvdr dvdread emerald enblend enchant encode epson exif expat fame festival ffmpeg fftw flac freetds gconf gd gdbm gdm geoip gif gimp gimpprint glade glibc-omitfp glitz gnome gnutls gocr gphoto2 gpm gs gtk gtkhtml gtkspell hal howl icons iconv id3 ieee1394 imap innodb ipod ipv6 jpeg jpeg2k ladspa lame lash lcms libnotify lm_sensors logrotate mad midi mjpeg mmx mmxext mng mono mp3 mp4 mpeg mpeg2 mplayer mssql mudflap musicbrainz mysql nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin nspr odbc offensive ogg opengl openmp pam pango pcre pdf perl pmount png pnm portage posix postfix postscript ppds pppd prediction python r300 rar readline reflection reiser4 reiserfs samba sdl sdl-image sdl-sound session sieve spell spl sse sse2 ssl startup-notification subtitles subversion svg taglib tagwriting tcpd theora tiff truetype-fonts type1-fonts unicode vcd vorbis wma wmf workbench xcb xorg xosd xrandr xrender xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

metabox ~ #


Who can help me?
_________________
David Hicks' plea. Was it:

a) I plead guilty, or
b) Please let me out of here and end the torture
Back to top
View user's profile Send private message
requiem
n00b
n00b


Joined: 07 Sep 2003
Posts: 23

PostPosted: Sun Oct 14, 2007 8:01 am    Post subject: Reply with quote

Try linking your java in manually:

Code:
# ln -s /opt/<java>/bin/java /etc/java-config-2/current-system-vm


Hope this helps. I think the java setup at the moment is pretty quirky. I think the reason we saw this was because it was a fresh install. I'm pretty sure if the java use flag isn't specified then you will not see this.
Back to top
View user's profile Send private message
VanDan
Guru
Guru


Joined: 30 Sep 2002
Posts: 586
Location: Australia

PostPosted: Sun Oct 14, 2007 8:31 am    Post subject: Reply with quote

Thanks.

An update to java-config-2.1.1 did it.
_________________
David Hicks' plea. Was it:

a) I plead guilty, or
b) Please let me out of here and end the torture
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum