Krzysiek Pawlik napsal(a): > Miroslav Ć ulc wrote: > >> Hi, >> >> I've faced a problem with migrated packages on my laptop. If I remember >> well, I've read somewhere that the new Java system will always try to >> build packages with the lower JDK possible. At least on my laptop (it's >> a fresh install of Gentoo - I've installed it about two weeks ago) >> packages are not built with the lowest JDK possible which results in >> these bugs when compiling packages dependant on a badly built package: >> > > Lowest "-target/-source", not JDK! Run java-1.5-fixer > I don't remember that I would do something that would broke the building of Java packages (I have a fresh install) but the fixer really fixed that. Thank you :-) But still my system is not clean. Running java-1.5-fixer after that several times gives me this: # java-1.5-fixer * Generating a list of jars which ant uses ... [ ok ] * Checking for > 1.4 bytecode in ant jars ... [ ok ] * Generating a list of jars in the system ... [ ok ] * Checking for > 1.4 bytecode in system jars ... [ ok ] * Attempting to fix broken packages ... * Packages to fix this run: =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 =dev-util/subversion-1.3.2-r3 And when trying to build dom4j I get this: >>> Emerging (1 of 1) dev-java/dom4j-1.6.1-r1 to / * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking dom4j-1.6.1.tar.gz ;-) ... [ ok ] * Using: sun-jdk-1.4 >>> Unpacking source... >>> Unpacking dom4j-1.6.1.tar.gz to /var/tmp/portage/dom4j-1.6.1-r1/work tar: A lone zero block at 78061 >>> Source unpacked. Rewriting ./build.xml >>> Compiling source in /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1 ... Buildfile: build.xml init: [echo] ----------- dom4j 1.6.1 [2005] ------------ clean: init: [echo] ----------- dom4j 1.6.1 [2005] ------------ prepare: [mkdir] Created dir: /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build prepare-src: [mkdir] Created dir: /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src [mkdir] Created dir: /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/classes [copy] Copying 179 files to /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src compile: [javac] Compiling 166 source files to /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/classes [javac] /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src/org/dom4j/jaxb/JAXBSupport.java:12: cannot access javax.xml.bind.JAXBContext [javac] bad class file: /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/lib/jaxmeapi.jar(javax/xml/bind/JAXBContext.class) [javac] class file has wrong version 49.0, should be 48.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import javax.xml.bind.JAXBContext; [javac] ^ [javac] 1 error BUILD FAILED /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build.xml:142: Compile failed; see the compiler error output for details. Total time: 3 seconds !!! ERROR: dev-java/dom4j-1.6.1-r1 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile dom4j-1.6.1-r1.ebuild, line 68: Called eant 'clean' 'package' java-utils-2.eclass, line 1224: Called die !!! eant failed !!! 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.4 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.4.2.12" JAVACFLAGS="-source 1.3 -target 1.3" COMPILER="javac" and of course, the output of emerge --info Miroslav