[OSGeoLive] #2387: 22.04 tomcat9 with openjdk8 JSP compilation error
OSGeoLive
trac_osgeolive at osgeo.org
Sat Jul 30 02:04:35 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):
I have tried to compile tomcat9 with Java8 and I got this error:
{{{
setup-bnd:
compile-prepare:
[copy] Copying 1 file to
/<<PKGBUILDDIR>>/java/org/apache/catalina/startup
[copy] Copying 1 file to /<<PKGBUILDDIR>>/webapps/docs
download-validate:
validate:
compile:
[javac] Compiling 1778 source files to /<<PKGBUILDDIR>>/output/classes
[javac] Support for javac --release has been added in Java9 ignoring
it
[javac]
/<<PKGBUILDDIR>>/java/org/apache/jasper/compiler/JDTCompiler.java:40:
error: cannot access IProblem
[javac] import org.eclipse.jdt.core.compiler.IProblem;
[javac] ^
[javac] bad class file: /usr/share/java/eclipse-jdt-
core.jar(org/eclipse/jdt/core/compiler/IProblem.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>>/build.xml:978: Compile failed; see the compiler error
output for details.
Total time: 2 seconds
dh_auto_build: error: ant -propertyfile ./debian/ant.properties
-Duser.name debian -Ddistribution.name=Ubuntu embed-jars deploy returned
exit code 1
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2022-07-30T08:21:28Z
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2387#comment:1>
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