View previous topic :: View next topic |
Author |
Message |
Nigredo Tux's lil' helper
Joined: 30 Jul 2005 Posts: 78 Location: UESR/PL
|
Posted: Sat Aug 19, 2006 1:37 pm Post subject: [Impossible] Java issues (SWT, xerces) |
|
|
I have recently updated (following this howto) JDK's and I am no longer able to install anything. The first problem occured while trying to update SWT (needed by Azureus):
Code: | * Building JNI libraries
Buildfile: build.xml
BUILD FAILED
java.lang.UnsupportedClassVersionError: org/apache/xerces/jaxp/SAXParserFactoryImpl (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:174)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:87)
at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)
at org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)
at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
at org.apache.tools.ant.Main.runBuild(Main.java:653)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 0 seconds
java.lang.UnsupportedClassVersionError: org/apache/xerces/jaxp/SAXParserFactoryImpl (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:174)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:87)
at org.apache.tools.ant.util.JAXPUtils.newParserFactory(JAXPUtils.java:114)
at org.apache.tools.ant.util.JAXPUtils.getNSParserFactory(JAXPUtils.java:100)
at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
at org.apache.tools.ant.Main.runBuild(Main.java:653)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
org/apache/xerces/jaxp/SAXParserFactoryImpl (Unsupported major.minor version 49.0)
!!! ERROR: dev-java/swt-3.2 failed.
Call stack:
ebuild.sh, line 1543: Called dyn_compile
ebuild.sh, line 938: Called src_compile
swt-3.2.ebuild, line 141: Called die
!!! Failed to compile JNI interfaces
!!! If you need support, post the topmost build error, and the call stack if relevant. |
I see some paths to xerces, so I guess it is the problem. I tried to update xerces then I get:
Code: | Rewriting ./build.xml
Traceback (most recent call last):
File "/usr/bin/xml-rewrite.py", line 132, in ?
rewriter = Rewriter(IOWrapper(source))
File "/usr/bin/xml-rewrite.py", line 43, in __init__
self.document = parse(stream.stream);
File "/usr/lib/python2.4/site-packages/_xmlplus/dom/minidom.py", line 1914, in parse
from xml.dom import expatbuilder
File "/usr/lib/python2.4/site-packages/_xmlplus/dom/expatbuilder.py", line 32, in ?
from xml.parsers import expat
File "/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
from pyexpat import *
ImportError: /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode
!!! ERROR: dev-java/xerces-2.7.1-r1 failed.
Call stack:
ebuild.sh, line 1543: Called dyn_unpack
ebuild.sh, line 714: Called post_src_unpack
java-ant-2.eclass, line 74: Called java-ant_bsfix
java-ant-2.eclass, line 128: Called java-ant_bsfix_one './build.xml'
java-ant-2.eclass, line 166: Called die
!!! xml-rewrite failed: ./build.xml
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.07"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
|
My emerge --info:
Code: | Gentoo Base System version 1.12.0_pre15
Portage 2.1.1_pre5-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Last Sync: Fri, 18 Aug 2006 21:50:02 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python: 2.3.4-r1, 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.5-r1
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/gcc-config: 1.3.13-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -s -pipe -mfpmath=sse -msse -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl/ http://gentoo.zie.pg.gda.pl http://www.ibiblio.org/pub/Linux/distributions/gentoo http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS=""
MAKEOPTS="-j2"
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.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apache2 apm avi berkdb bitmap-fonts bzip2 cli crypt cups dga divx dlloader dri dts dvd dvdr eds elibc_glibc emboss encode fbcon ffmpeg flac font-server foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg jpeg2k kernel_linux libg++ libwww lm_sensors mad mikmod mmx motif mp3 mp4 mpeg mplayer mysql ncurses nls nptl objc ogg opengl oss pam pcre pdf pdflib perl png pppd python qt3 qt4 quicktime radeon readline real reflection samba sdl session speex spell spl sse ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts ucs2 udev unicode usb userland_GNU video_cards_radeon vorbis xfce4 xml xmms xorg xprint xv xvid zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
|
I have sun-jdk-1.4.2.12 (generation 1) and 1.5.0.07 (generation 2).
Last edited by Nigredo on Mon Aug 21, 2006 2:20 pm; edited 1 time in total |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sat Aug 19, 2006 1:52 pm Post subject: |
|
|
The message Code: | (Unsupported major.minor version 49.0) | usually indicates that one was built with java 1.4, the other with 1.5. Build both (all) with the same java version and it should work. _________________ KDE |
|
Back to top |
|
|
Nigredo Tux's lil' helper
Joined: 30 Jul 2005 Posts: 78 Location: UESR/PL
|
Posted: Sat Aug 19, 2006 2:05 pm Post subject: |
|
|
All packages have been built with 1.5 version (before upgrading), but I don't know how to force it to use 1.5. |
|
Back to top |
|
|
Nigredo Tux's lil' helper
Joined: 30 Jul 2005 Posts: 78 Location: UESR/PL
|
Posted: Sun Aug 20, 2006 3:30 am Post subject: |
|
|
Anyone knows how to do that? I tried java-config -S sun-jdk-1.5, but it still uses 1.4 to compile SWT (and of course crashes). |
|
Back to top |
|
|
Dizzutch Guru
Joined: 09 Nov 2004 Posts: 463 Location: Worcester, MA
|
Posted: Sun Sep 10, 2006 4:43 pm Post subject: |
|
|
I'm having the same problem here, suggested was to run java-check-environment and java-1.5-fixer, which i did, but nothing changed. I'm also wondering how to force the use of 1.5.
edit: I actually got it to work by copying swt to my overlay and applying the following patch
Code: |
--- /usr/portage/dev-java/swt/swt-3.2-r1.ebuild 2006-08-28 14:05:38.000000000 -0400
+++ /usr/local/portage/dev-java/swt/swt-3.2-r1.ebuild 2006-09-10 12:43:47.000000000 -0400
@@ -42,12 +42,12 @@
virtual/opengl
virtual/glu
)"
-DEPEND="=virtual/jdk-1.4*
+DEPEND="=virtual/jdk-1.5*
${COMMON}
>=dev-util/pkgconfig-0.9
dev-java/ant-core
app-arch/unzip"
-RDEPEND="=virtual/jre-1.4*
+RDEPEND="=virtual/jre-1.5*
${COMMON}"
S="${WORKDIR}"
|
-Dizz _________________ Help the confused! Adopt an unanswered post!
prepend [solved] to your post title when you feel your issue is resolved.
Worcester Judo |
|
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
|
|