web-dev-qa-db-fra.com

Échec d'initialisation du périphérique graphique pour: es2, sw

Je reçois le message d'erreur suivant pendant l'exécution Kangaroo Test Automation

Graphics Device initialization failed for :  es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
Java.lang.RuntimeException: Java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.Sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.Java:280)
    at com.Sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.Java:220)
    at com.Sun.javafx.tk.Toolkit.getToolkit(Toolkit.Java:173)
    at com.Sun.javafx.application.PlatformImpl.startup(PlatformImpl.Java:206)
    at com.Sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.Java:649)
    at com.Sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.Java:312)
    at com.Sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.Java:303)
    at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at Sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.Java:62)
    at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
    at Java.lang.reflect.Method.invoke(Method.Java:497)
    at Sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.Java:767)
Caused by: Java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
    at com.Sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.Java:94)
    at com.Sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.Java:124)
    at Java.lang.Thread.run(Thread.Java:745)
Exception in thread "main" Java.lang.reflect.InvocationTargetException
    at Sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at Sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.Java:62)
    at Sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.Java:43)
    at Java.lang.reflect.Method.invoke(Method.Java:497)
    at Sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.Java:767)
Caused by: Java.lang.RuntimeException: No toolkit found
    at com.Sun.javafx.tk.Toolkit.getToolkit(Toolkit.Java:185)
    at com.Sun.javafx.application.PlatformImpl.startup(PlatformImpl.Java:206)
    at com.Sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.Java:649)
    at com.Sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.Java:312)
    at com.Sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.Java:303)
    ... 5 more

je l'ai google et fount j'ai envoyé un développeur d'application et il m'a répondu que je dois installer gtk3, donc j'ai essayé de suivre les paquets

Sudo apt-get install libgtk-3-dev
Sudo apt-get install libswt-gtk-3-Java

même si ça ne marche pas, est-ce que quelqu'un peut m'aider, pourquoi?

ma version Java est

openjdk version "1.8.0_40-internal"
OpenJDK Runtime Environment (build 1.8.0_40-internal-b27)
OpenJDK 64-Bit Server VM (build 25.40-b25, mixed mode)

je suis passé https://stackoverflow.com/questions/21185156/javafx-on-linux-is-showing-a-graphics-device-initialization-failed-for-es2-s même si pas capable de trouver une solution.

toute aide est appréciée.

2
piyushmandovra

Je me rends compte que c’est une vieille question, mais j’ai rencontré le même problème avec Ubuntu 14.04 en essayant d’exécuter thinkorswim. Mon problème était dû au fait que j'utilisais la version 32 bits du jre. lorsque j'ai installé la version 64 bits de Java, les erreurs ont disparu.

2
jim

J'ai eu exactement le même problème sous openSUSE13.2 avec Eclipse. La solution consistait à déplacer le fichier jfxrt.jar (qui se trouve dans l'archive Java SE Development Kit 8u45) vers:

/usr/lib64/jvm/Java-1.8.0-openjdk-1.8.0/jre/lib/jfxrt.jar

Pas à /usr/lib64/jvm/Java-1.8.0-openjdk-1.8.0/jre/lib/ext/jfxrt.jar comme je le faisais auparavant.

1
janjansen