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/03/13 17:34: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=16791927#comment-16791927 ] 

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

It's very simply. Change the scope of the "Add javafx properties" option and the FXML form template. So, the user can use them from any java project instead of javafx projects only.

I don't know which code parts should be changed, but I guess it won't require too much effort. From there, any user having the javafx jars in the class/module path may run and debug the project.

I know there's a team, and somebody in that team may do it when possible. Please, I know that this is an open source project and that every change requires of a process. I don't pretend to ask something as if I've been paying for anything at all. I'm just suggesting that this bug should be proposed as a needed fix prior to next release.

> 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