| View previous topic :: View next topic |
| Author |
Message |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Mon Aug 20, 2007 4:29 pm Post subject: [solved] java upgrade problem |
|
|
I just wanted to emerge jabref.
It failes with
| Code: | Calculating dependencies... done!
>>> Verifying ebuild Manifests...
>>> Emerging (1 of 9) dev-java/spin-1.3.1 to /
* spin-1.3.1.zip RMD160 ;-) ... [ ok ]
* spin-1.3.1.zip SHA1 ;-) ... [ ok ]
* spin-1.3.1.zip SHA256 ;-) ... [ ok ]
* spin-1.3.1.zip size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking spin-1.3.1.zip ;-) ... [ ok ]
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in <module>
from java_config import jc_options
ImportError: No module named java_config
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
* There was a problem determining which VM to use for generation-1
* This is because the way Java is handled on Gentoo has drastically changed.
* There does not seem to be a 1.4 or 1.3 JDK installed.
* You should probably install =virtual/jdk-1.4* or =virtual/jdk-1.3*
* It is important to have either a 1.4 or 1.3 JDK installed
* in order for the old and new Java systems to coexist
* Details about this can be found at:
* http://overlays.gentoo.org/proj/java/wiki/Why_We_Need_Java14
* If you wonder why we can't just depend on the needed JDK version,
* then read https://bugs.gentoo.org/show_bug.cgi?id=144240
* You should run, and follow the advice of:
* /usr/bin/java-check-environment
* You will also likely want to follow the Java Upgrade Guide:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml
* If you have problems with the guide, please see:
* http://overlays.gentoo.org/proj/java/wiki/Common_Problems
!!! ERROR: dev-java/spin-1.3.1 failed.
Call stack:
ebuild.sh, line 1648: Called dyn_setup
ebuild.sh, line 714: Called qa_call 'pkg_setup'
ebuild.sh, line 44: Called pkg_setup
ebuild.sh, line 1322: Called java-pkg_pkg_setup
java-pkg.eclass, line 61: Called die
!!! Expected VMHANDLE to be defined in the env
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/spin-1.3.1/temp/build.log'.
|
If I try to follow this hint I receive a
| Code: | /usr/bin/java-check-environment
* === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java Environment.
* We have significantly changed and improved the way Java is handled in many
* respects.
* Please refer to our upgrade guide for details:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml
* Checking fastjar ... [ ok ]
* Checking vm_environment_files ... [ ok ]
* Checking user_settings ...
* Running as root. Don't need to check user settings. [ ok ]
* Checking generation_1_system_vm ...
* No Generation-1 System VM is set! (no /etc/env.d/20java)
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in <module>
from java_config import jc_options
ImportError: No module named java_config
* It doesn't look like java-config-1 sees any installed VMs.
* It is most likely because you don't have a 1.4 JDK installed
* This is required for generation-1 to work properly.
* You will want to emerge =virtual/jdk-1.4* [ !! ]
* Some problems were found. Please follow the instructions above, and rerun java-check-environment
|
This is my emerge --info:
| Code: | Portage 2.1.2.11 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 20 Aug 2007 09:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.23b
virtual/os-headers: 2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
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/share/X11/xkb /usr/share/config /usr/spool/PBS"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="de en"
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/voip /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 alsa apache2 berkdb bitmap-fonts bluetooth cli cracklib crypt cups divx4linux dri dv dvb dvd dvdread dvi encode fame fortran fpx g77 gdbm gif gpm graphviz gs gtk iconv imap ipv6 isdnlog jbig jpeg jpeg2k midi mmx mmxext mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl php png ppds pppd python quicktime readline real reflection session spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wifi win32codecs x264 x86 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="i810 vesa vmware nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
What can I do?
/BR
Last edited by derverstand on Mon Aug 20, 2007 7:05 pm; edited 1 time in total |
|
| Back to top |
|
 |
drwook Veteran

Joined: 30 Mar 2005 Posts: 1316 Location: London
|
Posted: Mon Aug 20, 2007 4:41 pm Post subject: |
|
|
| emerge a 1.4 jdk ? |
|
| Back to top |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Mon Aug 20, 2007 4:55 pm Post subject: |
|
|
Did not mention this. It is emerged of course.
What else? |
|
| Back to top |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Mon Aug 20, 2007 4:58 pm Post subject: |
|
|
I should mention these facts additionally:
emerge =sun-jdk-1.4.2.15 gives me this:
| Code: |
* Updating desktop mime database ...
>>> Original instance of package unmerged safely.
emerge jabref
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
Traceback (most recent call last):
File "/usr/local/bin/java-config-2", line 12, in <module>
from java_config.OutputFormatter import OutputFormatter
ImportError: No module named OutputFormatter
* sun-jdk-1.4.2.15 set as the default system-vm.
* No generation-1 system-vm previously set.
* Setting generation-1 system-vm to sun-jdk-1.4
* System nsplugin is already set, not changing it.
* You can change nsplugin with eselect java-nsplugin.
* Updating desktop mime database ...
* Starting with 1.4.2.14 the src.zip is installed to the standard
* location only (/opt/sun-jdk-1.4.2.15/) and not /opt/sun-jdk-1.4.2.15/share/
* as we used to. See https://bugs.gentoo.org/show_bug.cgi?id=2241 and
* http://java.sun.com/j2se/1.4.2/docs/tooldocs/linux/jdkfiles.html
* for more details.
>>> dev-java/sun-jdk-1.4.2.15 merged.
>>> Recording dev-java/sun-jdk in "world" favorites file...
>>> No packages selected for removal by clean
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
|
Trying eselect java-nsplugin yields:
| Code: | eselect java-nsplugin
!!! Error: Can't load module java-nsplugin
Killed
|
:/ |
|
| Back to top |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Mon Aug 20, 2007 6:03 pm Post subject: |
|
|
According to http://gentoo-wiki.com/Java_FAQ I should use the python-updater.
I got both python 2.4.4-r4 and 2.5.1-r2 installed. When I run python-updater I receive
| Code: | python-updater
* Can't determine any previous Python version(s).
|
What to do now?
/BR |
|
| Back to top |
|
 |
derverstand Guru


Joined: 15 Dec 2005 Posts: 511 Location: /dev/null
|
Posted: Mon Aug 20, 2007 7:05 pm Post subject: |
|
|
This excellent website fixed my problem http://dewarim.de/wms/error/java_config:
| Code: | rm /usr/local/bin/python*
emerge python
emerge -1 =java-config-1* =java-config-2* |
|
|
| Back to top |
|
 |
|
|
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
|
|