NoSuchMethodError on Java8 JVM
madsvonqualen opened this issue · 2 comments
madsvonqualen commented
When using version 2.0.2 on a Java 8 JVM I get this exception:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
at com.zaxxer.nuprocess.windows.WindowsProcess.afterStart(WindowsProcess.java:622)
at com.zaxxer.nuprocess.windows.WindowsProcess.prepareProcess(WindowsProcess.java:308)
at com.zaxxer.nuprocess.windows.WindowsProcess.start(WindowsProcess.java:232)
at com.zaxxer.nuprocess.windows.WinProcessFactory.createProcess(WinProcessFactory.java:42)
at com.zaxxer.nuprocess.NuProcessBuilder.start(NuProcessBuilder.java:259)
According to jetty/jetty.project#3244 (comment) this is caused by compiling the code with JDK9+ while using the -source/-target flags instead og using the new -release flag.
This issue is not present in version 2.0.1.