java-config (Version 2, java-config-2) fails on execution with -S switch. I cannot use java with the new interface. ----------------------------------------- Code --------------------------- java-config -L 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) IBM JDK 1.5.0 [ibm-jdk-bin-1.5] (/usr/share/java-config-2/vm/ibm-jdk-bin-1.5) 3) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) ----------------------------------------- Code --------------------------- So I try to switch to the sun-jdk ----------------------------------------- Code --------------------------- azul1 ibm-jdk-bin # java-config -S sun-jdk-1.5 Traceback (most recent call last): File "/usr/bin/java-config-2", line 308, in ? (options, args) = parser.parse_args() File "/usr/lib64/python2.4/optparse.py", line 1275, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib64/python2.4/optparse.py", line 1319, in _process_args self._process_short_opts(rargs, values) File "/usr/lib64/python2.4/optparse.py", line 1426, in _process_short_opts option.process(opt, value, values, self) File "/usr/lib64/python2.4/optparse.py", line 707, in process return self.take_action( File "/usr/lib64/python2.4/optparse.py", line 726, in take_action self.callback(self, opt, value, parser, *args, **kwargs) File "/usr/bin/java-config-2", line 133, in set_system_vm manager.set_system_vm(vm) File "/usr/share/java-config-2/pym/java_config/EnvironmentManager.py", line 210, in set_system_vm self.set_vm(vm, self.system_vm_link()) File "/usr/share/java-config-2/pym/java_config/EnvironmentManager.py", line 220, in set_vm os.symlink('/usr/lib/jvm/'+vm.name(),target) OSError: [Errno 17] File exists ----------------------------------------- Code --------------------------- I tried to see what happens but I don't know how "vm.name()", target contains. ----------------------------------------- Code --------------------------- azul1 ibm-jdk-bin # ls -l /usr/lib/jvm/ total 0 lrwxrwxrwx 1 root root 27 Jul 17 17:16 blackdown-jdk-1.4.2 -> /opt/blackdown-jdk-1.4.2.03 lrwxrwxrwx 1 root root 22 Jul 18 17:23 ibm-jdk-bin-1.5 -> /opt/ibm-jdk-bin-1.5.0lrwxrwxrwx 1 root root 21 Jul 17 17:16 sun-jdk-1.5 -> /opt/sun-jdk-1.5.0.07 ----------------------------------------- Code --------------------------- Hope it helps... emerge --info Portage 2.1.1_pre3 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-gentoo-r10 x86_64) ================================================================= System uname: 2.6.16-gentoo-r10 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 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.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.du.se/pub/os/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ " LINGUAS="es en fr" MAKEOPTS="-j10" 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://azul3/portage" USE="amd64 3dnowex GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi activefilter alsa apache2 apm artwork async automount avi bash-completion berkdb bitmap-fonts bluetooth bluez bogofilter bonobo browserplugin bzip2 cairo cdda cddb cdparanoia chm cli corba cpudetection crypt ctrlmenu cups daap dbus debug dga dhcp divx4linux djvu dlloader dmx dri dts dv dvb dvd dvdr dvdread dvi eds effects emboss encode esd ethereal evo exif extensions extra fame ffmpeg firefox flac font-server fontconfig foomatic foomaticdb fortran freetts freetype galago gd gd-external gdbm gif gimp glib glitz glut gnome gnome-keyring gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl ieee1394 imlib ipod ipv6 irmc isdnlog jack java joystick jpeg lcms ldap ldapsam libgda lirc live lzo lzw lzw-tiff mad mbrola mime mjpeg mmap mng mod modplug mono mozdevelop mozsvg mozxmlterm mp3 mpeg mplayer mppe-mppc musepack musicbrainz mysql nas nautilus ncurses network new-login nls nntp nptl nptlonly nsplugin oav offensive ogg ole opengl oss pam pcre pda pdf pdflib perl pic png ppds pppd python qt3 qt4 quicktime quotas rar readline reflection rtc rtsp samba sasl sblive scanner sdk sdl server session shout sid skins smartcard smp sndfile speex spell spl spreadsheet ssl stream subtitles svg tagwriting tcltk tcp tcpd tga theora threads tiff timidity truetype truetype-fonts type1-fonts unicode upnp usb userlocales v4l v4l2 vcd vlm vorbis webservices widescreen winbind wma wmf wv wxwindows x264 xanim xinerama xml xmms xorg xosd xpm xprint xv xvid xvmc yv12 zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_vmmouse input_devices_wacom input_devices_joystick input_devices_evdev kernel_linux linguas_es linguas_en linguas_fr userland_GNU video_cards_apm video_cards_nv video_cards_vga video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS -- Thank you so much.
You may want to mention which versions of java-config you have installed...
Yep, I forgot to say that... * dev-java/java-config Latest version available: 2.0.26-r3 Latest version installed: 2.0.26-r3
It's solved. There was a file with the name /etc/java-config-2/current-system-vm surely. So the system was not able to create the correct symlink. This was my fault but the system should advertice about this condition instead of just die.
Please don't close the bug. While you were able to fix it on your system, the problem may occur for others until we figure out how to make java-config handle this scenario gracefully.
Fixed in svn trunk r2711.
Released in java-config-2.0.28