Running JavaFX application using framebuffer Cubieboard A10 error

Since javafx supports raspberry PI. I want to run an FX application in a framebuffer. I am using a Lubuntu LCD.

When I try to run a JavaFX application

java -Djavafx.platform=eglfb Hello.jar 

I get the following error

I am using 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 

Please help me find a way out.

+5
source share
1 answer

After some research, you should consider reinstalling OpenGL ES and possibly GTK. There is a problem during initialization and Java cannot display the application.

This might be a problem from the Java version used at run time, which should be Java 8. Let me check the default java version used by your system:

 ls -l /usr/lib/jvm 

If this is not the correct version, you can change it with this command:

 sudo update-alternatives --config java 

You can also verify that Java is available with this command:

 java -version 

You may have more information with these options:

 -Dprism.verbose=true -Dprism.debug=true -Djavafx.verbose=true -Djavafx.debug=true 
+2
source

Source: https://habr.com/ru/post/1201807/


All Articles