[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Can't execute OpenJFX app from command-line on macOS
From:       Michael Paus <mp () jugs ! org>
Date:       2019-09-16 18:27:29
Message-ID: b8c4b295-268d-90d5-3142-eb339e4037e7 () jugs ! org
[Download RAW message or body]

There are currently issues with AdoptOpenJDK on Mojave.
(https://github.com/AdoptOpenJDK/openjdk-build/issues/1211)
This also applies to 12. Try to use one of the latest nightly builds
where this bug is supposed to be fixed.
Michael

Am 16.09.19 um 20:01 schrieb Duquette, Will (US 393E):
> Howdy!
> 
> 
> I'm running on Mojave using AdoptOpenJDK 12 and OpenJFX 13.  I've built a simple \
> hello world app (a label in a stackpane).  When I try to run it from the command \
> line, I get this: 
> 
> $ java --module-path ${PATH_TO_FX} --add-modules javafx.controls -cp dist/MyApp.jar \
> myapp.App 
> 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 javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
>  
> at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244)
>  
> at javafx.graphics/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
> 
> ...
> 
> Any ideas?
> 
> The app looks like this:
> 
> package myapp;
> 
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.control.Label;
> import javafx.scene.layout.StackPane;
> import javafx.stage.Stage;
> 
> /**
> *
> * @author will
> */
> public class App extends Application {
> @Override
> public void start(Stage stage) throws Exception {
> StackPane root = new StackPane();
> 
> Label label = new Label("Hello, world!");
> 
> label.setPrefWidth(200);
> label.setPrefHeight(200);
> 
> root.getChildren().add(label);
> 
> stage.setTitle("Hello, World");
> stage.setScene(new Scene(root));
> stage.show();
> }
> 
> /**
> * @param args the command line arguments
> */
> public static void main(String[] args) {
> launch(args);
> }
> }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic