[ https://issues.apache.org/jira/browse/NETBEANS-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914018#comment-16914018 ]
Geertjan Wielenga commented on NETBEANS-3018: --------------------------------------------- You do not have it clear, at all. Not even a little bit. JDK 8 includes JavaFX. If you run Apache NetBeans on JDK 8, you will be able to use the samples you're now trying to use. After JDK 8, JavaFX is not included in the JDK. For JDK 11, open the New Project dialog and go to Samples and then choose one of the projects from the OpenJFX category, which is new in 11.1. That way you'll be using openjfx.io via Maven, which is the future of JavaFX. > JAVA FX not working > ------------------- > > Key: NETBEANS-3018 > URL: https://issues.apache.org/jira/browse/NETBEANS-3018 > Project: NetBeans > Issue Type: Bug > Affects Versions: 11.0 > Environment: Sofwtaer platform > Reporter: Tomas > Priority: Major > Attachments: 1.PNG > > > Dear All, > > I am trying to create JAVA simple project to test whether JAVA FX works. I > have installed > > *Product Version:* Apache NetBeans IDE 11.0 (Build > incubator-netbeans-release-404-on-20190319) > *Updates:*[Updates available|about:check-for-updates] > *Java:* 12.0.1; Java HotSpot(TM) 64-Bit Server VM 12.0.1+12 > *Runtime:* Java(TM) SE Runtime Environment 12.0.1+12 > *System:* Windows 10 version 10.0 running on amd64; Cp1250; cs_CZ (nb) > > and loaded > > openjfx-11.0.2_windows-x64_bin-sdk JAVA FX SDK > > I use JAVA Open JDK version jdk-12.0.1 > > ----------------------------------------------------- > > I created really simple JAVA FX application. Did all the recommended actions > esp. registering > > modules in VM options as > > --module-path="C:/Netbeans/javafx-sdk-11.0.2/lib" > --add-modules=javafx.controls > > I can easily compile my code, but when try to run I get this error > > Error occurred during initialization of boot layer > java.lang.module.FindException: Module javafx.controls not found > C:\Users\tomas\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:111: > The following error occurred while executing this line: > C:\Users\tomas\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:68: > Java returned: 1 > > > Would appreciate help on this. Thx lots Tom > > -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists