← Back to team overview

openjdk team mailing list archive

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

 

Package: openjdk-8-jdk
Version: 8u181-b13-2
Severity: normal

Dear all

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:
$ which java
/usr/bin/java
$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
$ java -jar myprog.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: javafx/event/EventTarget has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
...


OTOH, if I use jdk8 from upstream:
$ which java
/home/norbert/Java/jdk1.8.0_192/bin/java
$ java -version
java version "1.8.0_192-ea"
Java(TM) SE Runtime Environment (build 1.8.0_192-ea-b04)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b04, mixed mode)
$ java -jar myprog.jar
...

There are no problems.

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

Thanks

Norbert


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openjdk-8-jdk depends on:
ii  libc6                   2.27-8
ii  libx11-6                2:1.6.7-1
ii  openjdk-8-jdk-headless  8u181-b13-2
ii  openjdk-8-jre           8u181-b13-2
ii  zlib1g                  1:1.2.11.dfsg-1

Versions of packages openjdk-8-jdk recommends:
ii  libxt-dev  1:1.1.5-1

Versions of packages openjdk-8-jdk suggests:
pn  openjdk-8-demo    <none>
pn  openjdk-8-source  <none>
pn  visualvm          <none>

-- no debconf information


Follow ups