← Back to team overview

openjdk team mailing list archive

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

 

On Wed, Oct 31, 2018 at 11:57 PM Norbert Preining <norbert@xxxxxxxxxxxxx> wrote:
> $ 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
> ...

Please note that differently from Oracle JDK the OpenJDK project does
not contain any classes for javafx. In Debian these classes are
provided by the openjfx package.
In particular the class javafx/event/EventTarget can be found in the
libopenjfx-java binary package inside the
/usr/share/java/javafx-base-11.jar file.

>From your system informaton I can see you are running sid. The openjfx
version in sid is 11+26-5, which is not compatible with openjdk-8 [see
https://github.com/javafxports/openjdk-jfx/blob/jfx-11/doc-files/release-notes-11.md].
It depends and is only usable with openjdk-10 or openjdk-11.

> 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.

This is because the Oracle JDK packages JavaFX in its binary, it is
not using the openjfx package from Debian, thus it works.

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

The only way for Debian to support that would be for it to have
something like a separated openjfx-8 package that was compiled with
openjdk-8. Somebody would have to be willing to support that but I am
not sure if openjdk-8 will even be included in buster. The openjfx
maintainer can probably provide a more insights into that.


-- 
Tiago Stürmer Daitx
Software Engineer
tiago.daitx@xxxxxxxxxxxxx

PGP Key: 4096R/F5B213BE (hkp://keyserver.ubuntu.com)
Fingerprint = 45D0 FE5A 8109 1E91 866E  8CA4 1931 8D5E F5B2 13BE


References