On Fri, 2017-09-22 at 11:08 +0200, Axel Braun wrote:
Hi,
maybe we have a Java-Expert around that can support: projectlibre [1] suddenly fails to build on TW, with the error message:
[ 31s] [ 31s] init: [ 31s] [mkdir] Created dir: /home/abuild/rpmbuild/BUILD/projectlibre-1.7.0/openproj_contrib/build [ 31s] [mkdir] Created dir: /home/abuild/rpmbuild/BUILD/projectlibre-1.7.0/openproj_contrib/tmp [ 31s] [ 31s] build: [ 31s] [javac] /home/abuild/rpmbuild/BUILD/projectlibre- 1.7.0/openproj_contrib/build.xml:30: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [ 31s] [javac] Compiling 10 source files to /home/abuild/rpmbuild/BUILD/projectlibre-1.7.0/openproj_contrib/build [ 31s] [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later. [ 31s] [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later. [ 31s] [ 31s] BUILD FAILED
As the version setting is not explicit mentioned in the spec file I guess it is some implicit definition. Anyone an idea where to look forß
For Tumbleweed, the default java compiler was switched to version 9, as pre-announced at http://dominique.leuenberger.net/blog/2017/09/review-o f-the-week-201736/ (the same always goes to the factory mailing lists for people not following the blog) Fridrich Strba was busy fixing all the errors he had seen (mostly what was in Java:Packaging), but there might be things left of course. As Robert already mentioned, in most cases switching the source and target version to 1.6 is sufficient; in some cases, the code needs patching if it actually violates Java 6 conventions. Should you need help, then I'm sure Fridrich will be lending you a hand here. Cheers, Dominique