If you get a "Quantum Renderer: no suitable pipeline found" error when running the jar file

When I created an app in Eclipce using a framework called JavaFX, when I executed the completed app as a jar file, it could not be opened, and instead I got the following error.

Command line screen


>java -jar test.bat
Graphics Device initialization failed for :  d3d, 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:244)
        at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:261)
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
        at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
        at java.base/java.lang.Thread.run(Thread.java:832)
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)
        ... 1 more
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.RuntimeException: No toolkit found
        at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:273)
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
        at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
        at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
        at java.base/java.lang.Thread.run(Thread.java:832)

The cause of this error is Zubari, __ not through environment variables __.

When using Java, set the environment variables "PATH" and "JAVA_HOME" to the folder path of OpenSDK. In the same way, when using the framework, I had to add the framework folder path to the environment variable "PATH".

Setting up JavaFX was easy, just open the Windows "Set System Environment Variables" and add the path to the bin folder of the JavaFX SDK folder to the "PATH" variable there.

This "no suitable pipeline found" will be the same in other frameworks if the environment variables are set incorrectly. If you get this error, be sure to suspect environment variables.

Recommended Posts

If you get a "Quantum Renderer: no suitable pipeline found" error when running the jar file
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get a port error when docker-compose up on Mac
I found no way to get the error code when I received an exception on Android
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
If you leave the Next.js app open in Chrome, you will get a "/ _next / webpack-hmr" Routing error in the Rails app.
What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
What to do if you are told "there is no main manifest attribute" when creating a jar file containing dependencies in a maven project
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
What to do if you get an error when you hit Heroku logs
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do when you want to delete a migration file that is "NO FILE"
Solution when you get the error Webpacker :: Manifest :: MissingEntryError in Devise :: Sessions # new
What to do if you get the error message unrecognized selector send to instance "***"
For those who get the error Unprintable ASCII character found in source file
What to do if you get an error saying "Please enter a valid value" when getting with Rails datetime_field
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
When I call the file with Class # getResource from the jar file, it becomes Not Found and it is a crappy memorandum