Exécution de l'application JavaFX à l'aide de l'erreur framebuffer Cubieboard A10


Depuis javafx prend en charge Raspberry PI. Je veux exécuter l'application FX dans le tampon de trame. J'utilise l'image d'affichage LCD Lubuntu.

Quand j'essaie d'exécuter l'application JavaFX

java -Djavafx.platform=eglfb Hello.jar

Je reçois l'erreur suivante

J'utilise java8 embedded hardfloat.

libEGL warning: DRI2: failed to authenticate
eglCreateWindowSurface failed! eglGetError 12291
eglMakeCurrent failed - 12288
Failed to create EGLContextGraphics Device initialization failed for :  es2
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:300)
    at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244)
    at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:179)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:214)
    at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:653)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:314)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305)
    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:483)
    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:98)
    at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:128)
    at java.lang.Thread.run(Thread.java:744)
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:483)
    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:191)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:214)
    at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:653)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:314)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:305)
    ... 5 more

Aidez-moi à trouver une issue.

Author: Aezur, 2014-09-04

1 answers

Après quelques recherches, vous devriez envisager de réinstaller OpenGL ES et peut-être GTK aussi. Il y a un problème lors de l'initialisation et Java ne peut pas rendre l'application.

Cela pourrait être un problème de la version Java utilisée à l'exécution qui doit être Java 8. Vérifions la version java par défaut utilisée par votre système:

ls -l /usr/lib/jvm

, Si ce n'est pas la bonne version, vous pouvez la changer avec cette commande :

sudo update-alternatives --config java

Vous pouvez également vérifier que java est accessible avec cette commande :

java -version

, Vous pouvez avoir plus d'informations avec ces options :

-Dprism.verbose=true -Dprism.debug=true -Djavafx.verbose=true -Djavafx.debug=true
 2
Author: Fabien Thouraud, 2014-09-18 08:45:11