You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "David Vidal (JIRA)" <ji...@apache.org> on 2019/02/15 04:30:00 UTC

[jira] [Commented] (NETBEANS-1489) For JDK 11+, update jfxrt.jar references to javafx.base.jar

    [ https://issues.apache.org/jira/browse/NETBEANS-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16768927#comment-16768927 ] 

David Vidal commented on NETBEANS-1489:
---------------------------------------

I cannot use NetBeans9 and 10 with Open JDK projects for this reason.

Old versions of NetBeans used to ask the user for the JavaFX directory in the settings dialog. Now, NetBeans only allows to select the SceneBuilder and keeps searching for the jfxrt.jar in the JDK folder despite it's no longer included in the JDK (neither Oracle, neither OpenJDK).

My solution was to create a standard java project, and add the javaFX libraries manually as dependencies. BUT this solution prevents me to use the create FX Properties assistant. I posted an issue proposing that FX Properties feature and FXML templates should be available in all kind of java projects (just like in IntelliJ Idea) but it was rejected.

I love NetBeans but for the sake of productivity I had to migrate temporary to IntelliJ which allows me to work with OpenJDK/JFX until this bug is fixed.

It started with NetBeans9, I tried again when NetBeans10 was released but the issue persists. It should be fixed as soon as possible.

> For JDK 11+, update jfxrt.jar references to javafx.base.jar
> -----------------------------------------------------------
>
>                 Key: NETBEANS-1489
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1489
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Geertjan Wielenga
>            Priority: Major
>
> Here are references in the codebase to jfxrt.jar, which should now be javafx.base.jar:
> https://github.com/apache/incubator-netbeans/search?q=jfxrt.jar&unscoped_q=jfxrt.jar
> The user should be told that, to use Apache NetBeans with JavaFX from JDK 11 onwards, they must follow the https://openjfx.io/openjfx-docs/#install-javafx instructions, to compile and run JavaFX code on JDK 11 with Apache NetBeans:
> 1. Download the SDK applicable from https://gluonhq.com/products/javafx/.
> 2. export PATH_TO_FX=/path/to/javafx-sdk-11/lib
> 3. Ant task in JavaFX Ant-based application should be updated (in the project template, ideally, or by the user themselves) to include the following in the Ant build target:
> javac --module-path $PATH_TO_FX --add-modules=javafx.controls HelloFX.java
> In the above, add the additional modules needed, and all the JavaFX classes at the end.
> 4. The Ant run target should be updated to include this call, where the last parameter is the fully qualified main class:
> java --module-path $PATH_TO_FX --add-modules=javafx.controls HelloFX
> To write JavaFX code in the editor in Apache NetBeans on JDK 11, without red underline markings, etc, the JavaFX modules used must be put on the module classpath of the JsvaFX project in Apache NetBeans.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists