[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-openjfx-dev
Subject: Re: [EXTERNAL] Re: Can't execute OpenJFX app from command-line on macOS
From: "Duquette, Will (US 393E)" <william.h.duquette () jpl ! nasa ! gov>
Date: 2019-09-16 19:25:18
Message-ID: 7DA356D7-F8D4-4AD5-A4E6-6B0C6D135328 () jpl ! nasa ! gov
[Download RAW message or body]
Aha! Good to know, thanks!
On 9/16/19, 11:28 AM, "openjfx-dev on behalf of Michael Paus" \
<openjfx-dev-bounces@openjdk.java.net on behalf of mp@jugs.org> wrote:
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