[ 
https://issues.apache.org/jira/browse/NETBEANS-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Geertjan Wielenga updated NETBEANS-1489:
----------------------------------------
    Description: 
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.

  was:
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:

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



> 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: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to