Page 1 sur 1

[JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 10:01
par Bel Riose
Bonjour à tous est à toute, ayant voulu installer un petit jeux sur mon ordi j'ai décidé d'installer palladium qui est le laucher d'un serveur minecraft, jusque l'a tout vas bien, je le téléchargé pour linux, je lance le .jar, mais il m'indique qu'il que manque javafx, donc je l'est installer, je relance le tout mais je tombe maintenant toujours sur ça: "Nous n'avons pu initialiser JavaFx.
JavaFx n'est pas installé sur votre ordinateur.

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 10:50
par benjarobin
Bonjour,
Peux tu donner la sortie de :

Code : Tout sélectionner

archlinux-java status
pacman -Qs java

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 11:02
par FoolEcho
Salut,

Sous réserve des informations demandées par benjarobin, le lancement du jar de palladium n'a pas l'air de bien enchaîner les étapes (je reproduis avec java 8 + jfx)...

Néanmoins tu dois pouvoir poursuivre l'installation en lançant l'autre jar qui a été tout de même récupéré:

Code : Tout sélectionner

$ java -jar ~/.paladium/bootstrap/bootstrap/bootstrap.jar
[2019-02-14 10:58:32] [Paladium] [DEBUG] main() called!
[2019-02-14 10:58:32] [Paladium] [DEBUG] Starting up bootstrap.
[2019-02-14 10:58:32] [Paladium] [INFO] Bootstrap Paladium started on linux...
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('os.name') == 'Linux'
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('os.version') == '4.20.7-arch1-1-ARCH'
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('os.arch') == 'amd64'
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('java.version') == '1.8.0_202'
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('java.vendor') == 'Oracle Corporation'
[2019-02-14 10:58:32] [Paladium] [INFO] System.getProperty('sun.arch.data.model') == '64'
[2019-02-14 10:58:32] [Paladium] [INFO] proxy == DIRECT
[2019-02-14 10:58:32] [Paladium] [SUCCESS] BootstrapPanel initialized.
[2019-02-14 10:58:32] [Paladium] [INFO] Connecting to the config server...
[2019-02-14 10:58:32] [Paladium] [SUCCESS] Connection established.
[2019-02-14 10:58:32] [Paladium] [INFO] JFX is already initialized
[2019-02-14 10:58:32] [Paladium] [INFO] Loaded config.
L'assistant se lance alors.



EDIT: Pour info, Paladium s'emmêle les crayons sur les propriétés systèmes, il se positionne sur du... java 11 (?!) lors du lancement du second jar... :|

Code : Tout sélectionner

$ java -jar Paladium.jar 
[2019-02-14 10:53:49] [Paladium] [DEBUG] main() called!
[2019-02-14 10:53:49] [Paladium] [DEBUG] Starting up bootstrap.
[2019-02-14 10:53:49] [Paladium] [INFO] Bootstrap Paladium started on linux...
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('os.name') == 'Linux'
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('os.version') == '4.20.7-arch1-1-ARCH'
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('os.arch') == 'amd64'
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('java.version') == '1.8.0_202'
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('java.vendor') == 'Oracle Corporation'
[2019-02-14 10:53:49] [Paladium] [INFO] System.getProperty('sun.arch.data.model') == '64'
[2019-02-14 10:53:49] [Paladium] [INFO] proxy == DIRECT
[2019-02-14 10:53:50] [Paladium] [SUCCESS] BootstrapPanel initialized.
[2019-02-14 10:53:50] [Paladium] [INFO] Connecting to the config server...
[2019-02-14 10:53:50] [Paladium] [SUCCESS] Connection established.
[2019-02-14 10:53:50] [Paladium] [INFO] Connecting to the resources server...
[2019-02-14 10:53:50] [Paladium] [SUCCESS] Connection established.
[2019-02-14 10:53:50] [Paladium] [INFO] Listing the files.
[2019-02-14 10:53:50] [Paladium] [INFO] Connection established, total time : 0 hours, 0 minutes, 0 seconds and 113 milliseconds.
[2019-02-14 10:53:50] [Paladium] [DEBUG] Load file '/home/ylange/.paladium/bootstrap/bootstrap/bootstrap.jar : 3,99 Mo (client : 85a4a684f306c76c2247a52d52716f01, server : 85a4a684f306c76c2247a52d52716f01)'
[2019-02-14 10:53:50] [Paladium] [INFO] Loaded 1 file(s) (size : 3,99 Mo).
[2019-02-14 10:53:50] [Paladium] [INFO] Finished loading, total time : 0 hours, 0 minutes, 0 seconds and 154 milliseconds.
[2019-02-14 10:53:50] [Paladium] [INFO] Checking files
[2019-02-14 10:53:50] [Paladium] [INFO] Download skipped as there are no files to download
[2019-02-14 10:53:50] [Paladium] [INFO] Starting launcher.
[2019-02-14 10:53:50] [Paladium] [INFO] Window closed, shutting down.
[2019-02-14 10:53:50] [Paladium] [INFO] Halting executors
[2019-02-14 10:53:50] [Paladium] [INFO] Awaiting termination.
[2019-02-14 10:53:50] [Paladium] [DEBUG] main() called!
[2019-02-14 10:53:50] [Paladium] [DEBUG] Starting up bootstrap.
[2019-02-14 10:53:50] [Paladium] [INFO] Bootstrap Paladium started on linux...
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('os.name') == 'Linux'
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('os.version') == '4.20.7-arch1-1-ARCH'
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('os.arch') == 'amd64'
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('java.version') == '11.0.2'
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('java.vendor') == 'Oracle Corporation'
[2019-02-14 10:53:50] [Paladium] [INFO] System.getProperty('sun.arch.data.model') == '64'
[2019-02-14 10:53:50] [Paladium] [INFO] proxy == DIRECT
[2019-02-14 10:53:51] [Paladium] [SUCCESS] BootstrapPanel initialized.
[2019-02-14 10:53:51] [Paladium] [INFO] Connecting to the config server...
[2019-02-14 10:53:51] [Paladium] [SUCCESS] Connection established.
[2019-02-14 10:53:54] [Paladium] [INFO] Window closed, shutting down.
[2019-02-14 10:53:54] [Paladium] [INFO] Halting executors
[2019-02-14 10:53:54] [Paladium] [INFO] Awaiting termination.
[2019-02-14 10:53:54] [Paladium] [INFO] Goodbye.

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 13:59
par Bel Riose
Merci pour vos réponses rapides, je tombe sur

Code : Tout sélectionner

[belriose@archlinux ~]$ archlinux-java status
Available Java environments:
  java-10-openjdk
  java-11-openjdk
  java-8-openjdk/jre (default)
[belriose@archlinux ~]$ pacman -Qs java
local/ca-certificates-utils 20181109-1
    Common CA certificates (utilities)
local/java-environment-common 3-1
    Common files for Java Development Kits
local/java-openjfx-bin 11.0.2-1
    Java OpenJFX 11 client application platform.
local/java-runtime-common 3-1
    Common files for Java Runtime Environments
local/jdk-openjdk 11.0.2.u7-1
    OpenJDK Java 11 development kit
local/jre-openjdk 11.0.2.u7-1
    OpenJDK Java 11 full runtime environment
local/jre-openjdk-headless 11.0.2.u7-1
    OpenJDK Java 11 headless runtime environment
local/jre10-openjdk 10.0.2.u13-1
    OpenJDK Java 10 full runtime environment
local/jre10-openjdk-headless 10.0.2.u13-1
    OpenJDK Java 10 headless runtime environment
local/jre8-openjdk 8.u202-1
    OpenJDK Java 8 full runtime environment
local/jre8-openjdk-headless 8.u202-1
    OpenJDK Java 8 headless runtime environment
local/js52 52.9.0-2
    JavaScript interpreter and libraries - Version 52
local/perl-json 2.97001-1
    JSON (JavaScript Object Notation) encoder/decoder
local/qt5-declarative 5.12.1-1 (qt qt5)
    Classes for QML and JavaScript languages
local/qt5-webchannel 5.12.1-1 (qt qt5)
    Provides access to QObject or QML objects from HTML clients for seamless
    integration of Qt applications with HTML/JavaScript clients



Cela me parait normale vu que j'ai essayer plusieurs version de java, pour ce qui est de palladium ça ne m’étonne pas il a deja du mal parfois sur windows, pardon windaube.

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 14:33
par FoolEcho
En java 8, il te faut installer le paquet java-openjfx (et suivre la procédure que j'ai indiquée plus haut).

Ou autrement tu testes avec java 11 (archlinux-java set java-11-openjdk) ... (en supposant que ton java-openjfx-bin soit ok...).

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 16:33
par Bel Riose
Cela à fonctionner, merci beaucoup, par contre c'est vraiment toujours le bordel avec java ....

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 19:01
par Bel Riose
Au final ça à tenu 5 minutes, je pense que ça doit être le faite que j'ai plusieurs version de java.

Re: [JavaFX] impossible d'initialiser JavaFX

Publié : jeu. 14 févr. 2019, 20:02
par Bel Riose
Au final problème résolu en désinstallant tout ce qui n’était pas nécessaire mais mes déboires ne sont pas fin puisque palladium ne charge pas puisque restant bloqué sur le laucher.