[OSGeoLive] #2387: 22.04 tomcat9 with openjdk8 JSP compilation error

OSGeoLive trac_osgeolive at osgeo.org
Sat Jul 30 02:07:01 PDT 2022


#2387: 22.04 tomcat9 with openjdk8 JSP compilation error
-----------------------+----------------------------
 Reporter:  kalxas     |       Owner:  osgeolive@…
     Type:  defect     |      Status:  new
 Priority:  blocker    |   Milestone:  OSGeoLive15.0
Component:  OSGeoLive  |  Resolution:
 Keywords:  java8      |
-----------------------+----------------------------
Comment (by kalxas):

 Tried to build with Java 8 and obviously it failed:

 {{{
 dh build --buildsystem=eclipse_bundles
    dh_update_autotools_config -O--buildsystem=eclipse_bundles
    dh_autoreconf -O--buildsystem=eclipse_bundles
    dh_auto_configure -O--buildsystem=eclipse_bundles
    dh_auto_build -O--buildsystem=eclipse_bundles
         ant -Dbasedir . -Dbundledir . -f debian/build.xml
 org.eclipse.jdt.annotation org.eclipse.jdt.apt.core
 org.eclipse.jdt.apt.pluggable.core org.eclipse.jdt.compiler.apt
 org.eclipse.jdt.compiler.tool org.eclipse.jdt.core -Duser.name debian
 Buildfile: /<<PKGBUILDDIR>>/debian/build.xml

 org.eclipse.jdt.annotation:
      [echo] Building bundle '' (org.eclipse.jdt.annotation:2.2.600)
     [mkdir] Created dir:
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/classes
     [touch] Creating
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/dependencies
     [mkdir] Created dir:
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/sources
      [copy] Copying 6 files to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/sources
     [javac] Compiling 6 source files to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/classes
     [javac] Support for javac --release has been added in Java9 ignoring
 it
     [javac] Creating empty
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/classes/org/eclipse/jdt/annotation
 /package-info.class
      [copy] Copying 9 files to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/classes
       [jar] Building jar:
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target/org.eclipse.jdt.annotation.jar
      [copy] Copying 1 file to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.annotation/target

 org.eclipse.jdt.core:
      [echo] Building bundle 'Java Development Tools Core'
 (org.eclipse.jdt.core:3.27.0)
     [mkdir] Created dir:
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/classes
     [touch] Creating
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/dependencies
     [mkdir] Created dir:
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/sources
      [copy] Copying 1496 files to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/sources
     [javac] Compiling 1496 source files to
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/classes
     [javac] Support for javac --release has been added in Java9 ignoring
 it
     [javac]
 /<<PKGBUILDDIR>>/org.eclipse.jdt.core/target/sources/org/eclipse/jdt/core/IBuffer.java:16:
 error: cannot access IResource
     [javac] import org.eclipse.core.resources.IResource;
     [javac]                                  ^
     [javac]   bad class file: /usr/share/java/eclipse-core-
 resources.jar(org/eclipse/core/resources/IResource.class)
     [javac]     class file has wrong version 55.0, should be 52.0
     [javac]     Please remove or make sure it appears in the correct
 subdirectory of the classpath.

 BUILD FAILED
 /<<PKGBUILDDIR>>/debian/build.xml:72: The following error occurred while
 executing this line:
 /usr/share/eclipse-debian-helper/build-eclipse-bundle.xml:64: Compile
 failed; see the compiler error output for details.

 Total time: 2 seconds
 dh_auto_build: error: ant -Dbasedir . -Dbundledir . -f debian/build.xml
 org.eclipse.jdt.annotation org.eclipse.jdt.apt.core
 org.eclipse.jdt.apt.pluggable.core org.eclipse.jdt.compiler.apt
 org.eclipse.jdt.compiler.tool org.eclipse.jdt.core -Duser.name debian
 returned exit code 1
 make: *** [debian/rules:6: build] Error 25
 dpkg-buildpackage: error: debian/rules build subprocess returned exit
 status 2
 --------------------------------------------------------------------------------
 Build finished at 2022-07-30T08:29:34Z

 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2387#comment:3>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list