← Back to team overview

openjdk team mailing list archive

Bug#912527: openjdk-8-jdk: please update to support class file version 64

 

On Thu, 1 Nov 2018, Norbert Preining wrote:

> building jars with jdk11 (as distributed by Debian) at the moment
> seems to create lass file version 54.0 files, but running them on
> Debian supplied jdk8 is not possible:

Indeed.

You have to compile with javac with the --release 8 option,
which is new starting from JDK 9. That will create class
files that use only Java 8 language features and link against
the Java 8 standard library instead of the Java 11 one.

> Would it be possible to update jdk8 in Debian to support that?

Even if it were (which I doubt), the Java 8 runtime (standard
library) does not contain many functions added, so it will not
work.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg


References