Our development environment: Netbeans IDE 12.6, JavaFX 17, Java 11
I have create a Netbeans Platform Application and want to use JavaFX,
I have add JavaFX jar into the wrapped jars, and there are no compile error for 
JavaFX in Netbeans IDE,
However, when I run the application, IDE will show following exception:
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
[catch] at java.base/java.lang.Thread.run(Thread.java:829)
And I don't know how to add -module-path and --add-modules for Netbeans 
Platform Application
















At 2022-01-12 13:10:16, "Geertjan Wielenga" 
<geertjan.wiele...@googlemail.com.INVALID> wrote:

You’ll need to describe in detail what doesn’t work.


Gj


On Wed, 12 Jan 2022 at 06:09, 王东华 <wdh_...@163.com> wrote:

Thank you very much.
This book talk about JavaFX with Netbeans and Java 8, I know how to use JavaFX 
with Netbeans and Java 8.
Now, our envrionment is: JavaFX 17, Netbeans 12.6 and Java 11, it doesn't work.
















At 2022-01-12 12:45:43, "Geertjan Wielenga" 
<geertjan.wiele...@googlemail.com.INVALID> wrote:

https://www.amazon.com/JavaFX-Client-Programming-NetBeans-Platform/dp/0321927710


Gj


On Wed, 12 Jan 2022 at 04:05, Chuck Davis <cjgun...@gmail.com> wrote:

Check out Module javafx.swing in the JavaFX documentation.
It's how I got started on JavaFX.



On Tue, Jan 11, 2022 at 5:59 PM 王东华 <wdh_...@163.com> wrote:


Dear,

I am investigating how to develop with Netbeans 12.6. I create a Netbeans 
platform application and I want to use JavaFX 17 in the application, our JDK is 
AWS Cretto 11.0.13. Unfortunately, I can not integrate JavaFX in the Netbeans 
Platform application.

I know how to integrate JavaFX in Java Application, but I can not integrated 
JavaFX into Netbeans Platfrom Application with the same way.

Do you have any idea about it? Looking forward to your reply.







 





 

Reply via email to