Summary: | servletapi-2.4-r1 does not compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan Yosifov <iyosifov> |
Component: | [OLD] Server | Assignee: | Java team <java> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ivan Yosifov
2005-03-13 09:31:44 UTC
Looks like you've build jdepend with java 1.5, which is not good (compiled class files are not downward compatible). Re-emerge with the 1.4 compiler, and do NOT set the system compiler to 1.5. I am not sure this is the case. AFAIK , java 1.5 outputs java 1.2 compatible class files , by default , although it passes -source=1.5 by default too ( I will look up the docs link ) . I have run Eclipse on 1.4 , while build on 1.5, which seems like a good test-case. Anyway , emerge-ing jdepend ( on 1.4 ) gives me :
home ~ # emerge jdepend
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/jdepend-2.8.1 to /
>>> md5 src_uri ;-) jdepend-2.8.1.zip
>>> Unpacking source...
>>> Unpacking jdepend-2.8.1.zip to /var/tmp/portage/jdepend-2.8.1/work
>>> Source unpacked.
Picked up _JAVA_OPTIONS: -Djava.nio.use_epoll=true
Buildfile: build.xml
prepare:
[mkdir] Created dir: /var/tmp/portage/jdepend-2.8.1/work/jdepend-2.8.1/build
compile-src:
BUILD FAILED
java.lang.UnsupportedClassVersionError: jdepend/xmlui/JDepend (Unsupported major.minor version 49.0)
Total time: 0 seconds
!!! ERROR: dev-java/jdepend-2.8.1 failed.
!!! Function src_compile, Line 30, Exitcode 1
!!! Failed Compiling
!!! If you need support, post the topmost build error, NOT this status message.
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html "the default is to generate class files to be compatible with the JDK 5 VM" Ok , I was wrong about the default output. Any ideas why "emerge jdepend" fails ? you've compiled certain dependencies with the jdk1.5, that is one of the reasons why it's masked. you can't simply change back now. recompile all packages you've compiled with the jdk1.5 first, afterwards compile servletapi-2.4-r1 Ok. And how do I obtain a list of packages to recompile ? |