question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for JavaFX builds

See original GitHub issue

Something like

- uses: actions/setup-java@v1
  with:
    java-version: '1.8'
    javafx: true

I believe Zulu just has ca-fx in the name of jdk versions with JavaFX.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
giltenecommented, Oct 1, 2019

The main driver for us building and providing FX-bundled versions of Zulu JDKs was making sure things work well in transitioning from Oracle JDK 8 to OpenJDK 8. Since Oracle JDK 8 had JavaFX bundled, none of the gradle/maven tooling stuff (as much as I personally use them. recommend them, and am happy/thankful for the community effort put into them) provides a “drop in”, zero changes means for replacing the Oracle JDK. Bundling is there becuase many people’s existing code and workflows assume FX-bundling.

Ironically, one of the most common drivers for people looking for a JavaFX-bundled JDK is not actual JavaFX application use, but “accidental”/unintentional use of some useful classes that happened to be part of JavaFX, but not part of the JDK, and were historically bundled in Oracle JDK 8.

E.g. one of the most popular transitioning problem we’ve run into with plain OpenJDK 8 JDK is that is that OpenJDK 8 is “missing” javafx.util.Pair<K,V>. And yes, it’s just a Pair class, and there are 342 other places you can get a good Pair class from. But that pair class was “part” of Oracle JDK 8, and it just worked there, and it is already in many people’s code, so…

This then continues with OpenJDK 11, where people transitioning existing code from 8 to 11 run into these “missing” FX classes (on top of all their other post-Java-8 trasitioning pain). We’ve run into enough of that in the real world that we chose to regularly provide FX-bundled OpenJDK 11 with Zulu starting with 11.0.3.

3reactions
konradpabjancommented, Nov 22, 2019

Support for JavaFX has been added with #27 being merged in. Big thanks to @giltene ! 🎉

README.md has been updated to reflect the recent changes. As long as you’re using actions/setup-java@v1 then you should be able to use the most recent changes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with JavaFX
JavaFX builds on top of JDK and is a standalone component. There are 2 different options for developing JavaFX applications: Use the JavaFX...
Read more >
Create a new JavaFX project | IntelliJ IDEA Documentation
Launch IntelliJ IDEA. · From the Generators list on the left, select JavaFX. · Name the new project, change its location if necessary,...
Read more >
How to Add JavaFX to an IntelliJ Project
If you want to create a JavaFX application in an IntelliJ project, you will need to add the JavafX library. Click on the...
Read more >
Getting Started with JavaFX: Hello World, JavaFX Style
The best way to teach you what it is like to create and build a JavaFX application is with a “Hello World” application....
Read more >
How to add JavaFX to Eclipse (the easy way) - Pragmatic Ways
Open up Eclipse and go to Preferences. You should be able to get to Preferences from Eclipse > Preferences or Window > Preferences...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found