#1 Le 27/01/2023, à 17:02
- Near3
Impossible de faire utiliser JavaFX à javaws
Bonjour à tous,
La commande suivante :
javaws file.jnlp
Renvoie :
Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.
Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.
Codebase matches codebase manifest attribute, and application is signed. Continuing. See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/no_redeploy.html for details.
Starting application [com.itfinance.core.Starter] ...
java.lang.NoClassDefFoundError: javafx/scene/Parent
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
at java.base/java.lang.Class.getMethod0(Class.java:3293)
at java.base/java.lang.Class.getMethod(Class.java:2106)
at java.desktop/net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:558)
at java.desktop/net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent
at java.desktop/net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1644)
... 7 more
Exception in thread "ProRealTime v11.1" java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/Parent
at java.desktop/net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:968)
Caused by: java.lang.NoClassDefFoundError: javafx/scene/Parent
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3166)
at java.base/java.lang.Class.getMethodsRecursive(Class.java:3307)
at java.base/java.lang.Class.getMethod0(Class.java:3293)
at java.base/java.lang.Class.getMethod(Class.java:2106)
at java.desktop/net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:558)
at java.desktop/net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent
at java.desktop/net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1644)
... 7 more
J'ai bien installé openjfx, mais il semblerait que javaws ne parvienne pas à l'utiliser.
Voici les différents liens que j'ai pu consulter :
https://linuxhint.com/run-jnlp-file-ubuntu/
https://openjfx.io/openjfx-docs/#install-javafx
https://github.com/AdoptOpenJDK/IcedTea-Web/issues/827
Mais sauf erreur, aucun ne m'indique clairement comment utiliser des options comme :
--module-path /usr/share/openjfx/lib/ --add-modules javafx.controls
avec javaws. J'espère qu'une âme charitable parviendra à m'aider car j'ai vraiment besoin d'utiliser ce fichier ^^
Hors ligne