OpenJDK Build with JavaFX

Philip Race philip.race at oracle.com
Thu Jul 6 22:32:47 UTC 2023


You don't have to build either of them yourself. You can create a 
jlinked image from pre-built binaries.

Eg get JDK 20 from https://www.oracle.com/java/technologies/downloads/
unpack it and add it to your PATH
Get pre-built JavaFX 20 jmods from https://gluonhq.com/products/javafx/
eg javafx-jmods-20.0.1
then run
jlink --output jdk+jfx_20 --module-path javafx-jmods-20.0.1 
--add-modules java.se,javafx.web,javafx.fxml,javafx.swing --bind-services

the jlinked in jdk+jfx_20  can now compile + run FX apps

-phil

On 7/6/23 2:57 PM, Michael Gasche wrote:
> Hello
>
> Does anyone have resources/documentation on how to build an OpenJDK 
> and to directly bundle it with JavaFX that could be shared?
>
> Thanks.
>
> Best, mike
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20230706/1a59cefc/attachment.htm>


More information about the build-dev mailing list