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

2018-12-04 Thread Emmanuel Bourg
Control: tags -1 + wontfix

On Tue, 20 Nov 2018 01:33:21 -0200 Tiago Daitx
> 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.

I don't plan to support an openjfx-8 package, sorry that's too much
work. openjdk-8 remains in Buster only as a convenience to build or
bootstrap packages that cannot build with OpenJDK 11 only. The openjdk-8
package is not supported at runtime, so JavaFX applications have to
migrate to OpenJDK 11.

Emmanuel Bourg



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

2018-11-19 Thread Tiago Daitx
On Wed, Oct 31, 2018 at 11:57 PM Norbert Preining  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.da...@canonical.com

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



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

2018-11-02 Thread Thorsten Glaser
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



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

2018-10-31 Thread Norbert Preining
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-62: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
pn  openjdk-8-source  
pn  visualvm  

-- no debconf information