Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » NEED: Hello World, Eclipse Project, Java 11, OpenJFX 11...(Can someone post a Hello World Eclipse project using Java 11 and OpenJFX 11? )
NEED: Hello World, Eclipse Project, Java 11, OpenJFX 11... [message #1795275] Wed, 19 September 2018 11:47 Go to next message
Eclipse UserFriend
I'm must be doing something very basic incorrectly.

All code is built without errors or warnings.

This is using Eclipse Photo.

module editorapp {
requires java.desktop;
requires java.logging;
requires java.prefs;
requires java.xml;

requires transitive javafx.base;
requires transitive javafx.controls;
requires transitive javafx.fxml;
requires transitive javafx.graphics;
requires transitive javafx.media;
requires transitive javafx.swing;
requires transitive javafx.swt;
requires transitive javafx.web;

exports editorapp;
}

In my Run configuration I have;

main class editorapp/editorapp

--module-path lib/javafx.base.jar lib/javafx.controls.jar lib/javafx.fxml.jar lib/javafx.graphics.jar lib/javafx.media.jar lib/javafx.swing.jar lib/javafx.swt.jar lib/javafx.web \
--add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.swt,javafx.web \
--add-exports=java.desktop/java.awt.dnd.peer=javafx.swing \
--add-exports=java.desktop/sun.awt=javafx.swing \
--add-exports=java.desktop/sun.awt.dnd=javafx.swing \
--add-exports=java.desktop/sun.awt.image=javafx.swing \
--add-exports=java.desktop/sun.java2d=javafx.swing \
--add-exports=java.desktop/sun.swing=javafx.swing \
--module editorapp/editorapp --add-modules=ALL-SYSTEM

I've also added a library $JAVAFX to the module path. But same results;

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 javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:222)
at javafx.graphics/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:409)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
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:566)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:834)
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:566)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)
Caused by: java.lang.RuntimeException: No toolkit found
at javafx.graphics/com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:409)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
... 5 more
Re: NEED: Hello World, Eclipse Project, Java 11, OpenJFX 11... [message #1795435 is a reply to message #1795275] Fri, 21 September 2018 17:24 Go to previous message
Eclipse UserFriend
My first wild guess is that the module with the native renderer part is missing but this question is probably better suited for the openjfx mailing list
Previous Topic:Support for Java11 / Open JFX 11 is on the way
Next Topic:Cannot complete the install because of a conflicting dependency
Goto Forum:
  


Current Time: Wed May 07 06:57:37 EDT 2025

Powered by FUDForum. Page generated in 0.03347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top