Gentoo Archives: gentoo-java

From: "Miroslav Šulc" <miroslav.sulc@××××××××.cz>
To:
Cc: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Falling to the lowest jdk available
Date: Fri, 28 Jul 2006 10:34:10
Message-Id: 44C9E7F4.7080308@startnet.cz
In Reply to: Re: [gentoo-java] Falling to the lowest jdk available by Krzysiek Pawlik
1 Krzysiek Pawlik napsal(a):
2 > Miroslav Šulc wrote:
3 >
4 >> Hi,
5 >>
6 >> I've faced a problem with migrated packages on my laptop. If I remember
7 >> well, I've read somewhere that the new Java system will always try to
8 >> build packages with the lower JDK possible. At least on my laptop (it's
9 >> a fresh install of Gentoo - I've installed it about two weeks ago)
10 >> packages are not built with the lowest JDK possible which results in
11 >> these bugs when compiling packages dependant on a badly built package:
12 >>
13 >
14 > Lowest "-target/-source", not JDK! Run java-1.5-fixer
15 >
16 I don't remember that I would do something that would broke the building
17 of Java packages (I have a fresh install) but the fixer really fixed
18 that. Thank you :-)
19
20 But still my system is not clean. Running java-1.5-fixer after that
21 several times gives me this:
22
23 # java-1.5-fixer
24 * Generating a list of jars which ant uses
25 ...
26 [ ok ]
27 * Checking for > 1.4 bytecode in ant jars
28 ...
29 [ ok ]
30 * Generating a list of jars in the system
31 ...
32 [ ok ]
33 * Checking for > 1.4 bytecode in system jars
34 ...
35 [ ok ]
36 * Attempting to fix broken packages ...
37 * Packages to fix this run:
38 =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1
39 =dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1
40 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1
41 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1
42 =dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1
43 =dev-util/subversion-1.3.2-r3
44
45
46 And when trying to build dom4j I get this:
47
48 >>> Emerging (1 of 1) dev-java/dom4j-1.6.1-r1 to /
49 * checking ebuild checksums ;-)
50 ...
51 [ ok ]
52 * checking auxfile checksums ;-)
53 ...
54 [ ok ]
55 * checking miscfile checksums ;-)
56 ...
57 [ ok ]
58 * checking dom4j-1.6.1.tar.gz ;-)
59 ...
60 [ ok ]
61 * Using: sun-jdk-1.4
62 >>> Unpacking source...
63 >>> Unpacking dom4j-1.6.1.tar.gz to /var/tmp/portage/dom4j-1.6.1-r1/work
64 tar: A lone zero block at 78061
65 >>> Source unpacked.
66 Rewriting ./build.xml
67 >>> Compiling source in /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1 ...
68 Buildfile: build.xml
69
70 init:
71 [echo] ----------- dom4j 1.6.1 [2005] ------------
72
73 clean:
74
75 init:
76 [echo] ----------- dom4j 1.6.1 [2005] ------------
77
78 prepare:
79 [mkdir] Created dir:
80 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build
81
82 prepare-src:
83 [mkdir] Created dir:
84 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src
85 [mkdir] Created dir:
86 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/classes
87 [copy] Copying 179 files to
88 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src
89
90 compile:
91 [javac] Compiling 166 source files to
92 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/classes
93 [javac]
94 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build/src/org/dom4j/jaxb/JAXBSupport.java:12:
95 cannot access javax.xml.bind.JAXBContext
96 [javac] bad class file:
97 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/lib/jaxmeapi.jar(javax/xml/bind/JAXBContext.class)
98 [javac] class file has wrong version 49.0, should be 48.0
99 [javac] Please remove or make sure it appears in the correct
100 subdirectory of the classpath.
101 [javac] import javax.xml.bind.JAXBContext;
102 [javac] ^
103 [javac] 1 error
104
105 BUILD FAILED
106 /var/tmp/portage/dom4j-1.6.1-r1/work/dom4j-1.6.1/build.xml:142: Compile
107 failed; see the compiler error output for details.
108
109 Total time: 3 seconds
110
111 !!! ERROR: dev-java/dom4j-1.6.1-r1 failed.
112 Call stack:
113 ebuild.sh, line 1545: Called dyn_compile
114 ebuild.sh, line 940: Called src_compile
115 dom4j-1.6.1-r1.ebuild, line 68: Called eant 'clean' 'package'
116 java-utils-2.eclass, line 1224: Called die
117
118 !!! eant failed
119 !!! If you need support, post the topmost build error, and the call
120 stack if relevant.
121
122 !!! When you file a bug report, please include the following information:
123 GENTOO_VM=sun-jdk-1.4 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.4.2.12"
124 JAVACFLAGS="-source 1.3 -target 1.3" COMPILER="javac"
125 and of course, the output of emerge --info
126
127
128 Miroslav

Attachments

File name MIME type
miroslav.sulc.vcf text/x-vcard

Replies

Subject Author
Re: [gentoo-java] Falling to the lowest jdk available Krzysiek Pawlik <nelchael@g.o>
Re: [gentoo-java] Falling to the lowest jdk available Caster <cast3r@××××××.cz>