On Fri, 17 Aug 2018 20:50:14 +0300 Vassilis Virvilis <vasv...@gmail.com>
wrote:
[...]
> With java8 installed I am getting the following. Isn't this the sign that is 
> compiled again against java9/java10?
> 
> 2018-08-17 16:20:46] [crit] java.lang.NoSuchMethodError: 
> java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;

I believe we should tighten the dependency on default-jre-headless. We
currently have for tomcat8-common:

default-jre-headless | java8-runtime-headless | java8-runtime

We should simply change that to

default-jre-headless (>= 10) | java10-runtime-headless | java10-runtime


Tomcat 8 works with the current default-jre package but you must
manually install a Java 10 runtime at the moment since the dependency is
satisfied with Java 8. Just switch to OpenJDK 10 with the
update-alternatives mechanism and the error will go away.

Markus

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to