Re:Re: RE: Netbeans IDE 12.6/JavaFX 17/Java 11
The tutorial is for Java Ant Application, we can integrate JavaFX in Netbeans Java Ant Application. Now, we can not integrated JavaFX for Netbeans Platform Application 在 2022-01-19 21:50:47,"Jean-Marc Borer" 写道: Have a look here. There is a JavaFX tutorial. https://netbeans.apache.org/kb/docs/java/index.html On Fri, Jan 14, 2022 at 11:08 AM wdh_456 wrote: Thank you very much, I will try this way. 发自我的小米手机 在 Giovanni Dal Maso ,2022年1月14日 下午6:05写道: We had similar problems and in the end it was better to switch to maven. Just create your Netbeans Platform Application using “Java with Maven” > “NetBeans Application” and add JavaFX as a maven dependency to the module that requires it. For example, add the following to the inside the pom.xml of the NB Module: org.openjfx javafx-controls 17.0.1 org.openjfx javafx-fxml 17.0.1 org.openjfx javafx-swing 17.0.1 HTH From:王东华 Sent: giovedì 13 gennaio 2022 09:26 To:users@netbeans.apache.org Subject: Netbeans IDE 12.6/JavaFX 17/Java 11 Dear, 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 - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: RE: Netbeans IDE 12.6/JavaFX 17/Java 11
Have a look here. There is a JavaFX tutorial. https://netbeans.apache.org/kb/docs/java/index.html On Fri, Jan 14, 2022 at 11:08 AM wdh_456 wrote: > Thank you very much, I will try this way. > > > > 发自我的小米手机 > 在 Giovanni Dal Maso ,2022年1月14日 下午6:05写道: > > We had similar problems and in the end it was better to switch to maven. > > Just create your Netbeans Platform Application using “Java with Maven” > > “NetBeans Application” and add JavaFX as a maven dependency to the module > that requires it. > > > > For example, add the following to the inside the pom.xml of > the NB Module: > > > > org.openjfx > > javafx-controls > > 17.0.1 > > > > > > org.openjfx > > javafx-fxml > > 17.0.1 > > > > > > org.openjfx > > javafx-swing > > 17.0.1 > > > > > > HTH > > > > > > *From:* 王东华 > *Sent:* giovedì 13 gennaio 2022 09:26 > *To:* users@netbeans.apache.org > *Subject:* Netbeans IDE 12.6/JavaFX 17/Java 11 > > > > Dear, > > 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 > > > > > > - To > unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional > commands, e-mail: users-h...@netbeans.apache.org For further information > about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re:RE: Netbeans IDE 12.6/JavaFX 17/Java 11
Thank you very much, I will try this way. 发自我的小米手机在 Giovanni Dal Maso ,2022年1月14日 下午6:05写道: We had similar problems and in the end it was better to switch to maven. Just create your Netbeans Platform Application using “Java with Maven” > “NetBeans Application” and add JavaFX as a maven dependency to the module that requires it. For example, add the following to the inside the pom.xml of the NB Module: org.openjfx javafx-controls 17.0.1 org.openjfx javafx-fxml 17.0.1 org.openjfx javafx-swing 17.0.1 HTH From: 王东华 Sent: giovedì 13 gennaio 2022 09:26 To: users@netbeans.apache.org Subject: Netbeans IDE 12.6/JavaFX 17/Java 11 Dear, 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 - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: Netbeans IDE 12.6/JavaFX 17/Java 11
We had similar problems and in the end it was better to switch to maven. Just create your Netbeans Platform Application using “Java with Maven” > “NetBeans Application” and add JavaFX as a maven dependency to the module that requires it. For example, add the following to the inside the pom.xml of the NB Module: org.openjfx javafx-controls 17.0.1 org.openjfx javafx-fxml 17.0.1 org.openjfx javafx-swing 17.0.1 HTH From: 王东华 Sent: giovedì 13 gennaio 2022 09:26 To: users@netbeans.apache.org Subject: Netbeans IDE 12.6/JavaFX 17/Java 11 Dear, 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
Re:Re: Netbeans IDE 12.6/JavaFX 17/Java 11
I have added javafx-graphics jar into the wrapper jars. In fact, only Netbeans Platform Application will throw this runtime exception. The JavaFX is correct for Ant Java Application of Netbeans. And in Eclipse, it is ok when I add vm parameters: --module-path "lib/javafx\lib" --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web I try to add these following parameter in Netbeans, but it throws same runtime exception run.args.extra=-J-D--module-path\=$JAVAFX_PATH -J-D--add-modules\="javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web" At 2022-01-13 17:32:52, "Mark Eggers" wrote: >First of all, when I do development it's for Java EE web containers. >Second of all, I use Maven, so if you're using Ant or Gradle I will have >even less of a clue. > >That being said, I did a quick search for: > >Error initializing QuantumRenderer: no suitable pipeline found a >StackOverflow discussion here: > >https://stackoverflow.com/questions/65737055/javafx-web-11-error-initializing-quantumrenderer-no-suitable-pipeline-found > >In it, there is a reference to a classifier for the javafx-graphics >artifact. The resulting dependency snippet is: > > > org.openjfx > javafx-graphics > 17 > mac > > >And substitute win or linux as the classifier if you're targeting those >systems. > >Another discussion on this can be found on the read-only github site: > >https://github.com/javafxports/openjdk-jfx/issues/237 > >While the Java version is different, it appears that there are >instructions for including the correct modules. I don't know if >something similar will work with Java 17. > >Again, I'm a web applications developer (when I develop - I'm mostly a >systems / software architect at this point) and not a desktop developer. > >Maybe this will point you in the correct direction at least? > >. . . just my two cents >/mde/ > >On 1/13/2022 12:25 AM, 王东华 wrote: >> Dear, >> 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 >
Re: Netbeans IDE 12.6/JavaFX 17/Java 11
First of all, when I do development it's for Java EE web containers. Second of all, I use Maven, so if you're using Ant or Gradle I will have even less of a clue. That being said, I did a quick search for: Error initializing QuantumRenderer: no suitable pipeline found a StackOverflow discussion here: https://stackoverflow.com/questions/65737055/javafx-web-11-error-initializing-quantumrenderer-no-suitable-pipeline-found In it, there is a reference to a classifier for the javafx-graphics artifact. The resulting dependency snippet is: org.openjfx javafx-graphics 17 mac And substitute win or linux as the classifier if you're targeting those systems. Another discussion on this can be found on the read-only github site: https://github.com/javafxports/openjdk-jfx/issues/237 While the Java version is different, it appears that there are instructions for including the correct modules. I don't know if something similar will work with Java 17. Again, I'm a web applications developer (when I develop - I'm mostly a systems / software architect at this point) and not a desktop developer. Maybe this will point you in the correct direction at least? . . . just my two cents /mde/ On 1/13/2022 12:25 AM, 王东华 wrote: Dear, 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 OpenPGP_signature Description: OpenPGP digital signature
Netbeans IDE 12.6/JavaFX 17/Java 11
Dear, 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