[Debian-med-packaging] Bug#895765: igv: FTBFS with java 9

Olivier Sallou olivier.sallou at irisa.fr
Mon Apr 16 09:17:57 BST 2018



On 04/16/2018 09:32 AM, Bas Couwenberg wrote:
> On 2018-04-16 08:18, Andreas Tille wrote:
>> it seems something has changed with openfx since the errors below are
>> all mentioning something like "import javafx. ...".  Do you have any
>> hint how this can be fixed?
>
> There is no OpenJFX for OpenJDK 9, see:
>
>  https://lists.debian.org/debian-java/2018/04/msg00003.html

indeed Java 9 removed some packages from *core* java and were moved to
additional modules to add at compilation/runtime.
Problem is this is not transparent/compatible with java <= 8.
So, to support java 9 AND below, you need specific scripts that detect
java version and act accordingly. This is not really cool to do and
maintain.....

As proposed, either javafx can be removed from code, either we shoud
stick to Java 9 and superior and add the javafx module.
there is an example in biojava4 for a build.xml:


       <junit haltonfailure="yes" printsummary="yes" fork="true">
          <jvmarg line="--add-modules java.se.ee"/>
          <classpath refid="test.classpath"/>
          .....

this example used java.se.ee module.

For javafx, there are several modules [0]:

* Base APIs for JavaFX UI Toolkit — javafx.base
* JavaFX APIs for UI Controls — javafx.controls
* JavaFX APIs for FXML — javafx.fxml
* JavaFX APIs for various Graphics Tools— javafx.graphics
* JavaFX APIs for Multimedia — javafx.media
* JavaFX APIs for Swing-JavaFX Interoperability — javafx.swing
* JavaFX APIs for WebView Functionality — javafx.web


To add multiple modules, one need to separate them with comma.

[0]
https://medium.com/@afinlay/whats-new-in-java-fx-java-9-updates-a90dd3d4dbba



>
> If the package works without JavaFX you should consider disabling that
> for the time being.
>
> You can also explicitly build with OpenJDK 8, but that will just get
> you a different RC bug because openjdk-8 will not be in buster.
>
> Kind Regards,
>
> Bas
>

-- 
Olivier Sallou
Univ Rennes, Inria, CNRS, IRISA
Irisa, Campus de Beaulieu
F-35042 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438



More information about the Debian-med-packaging mailing list