Skip to content

Feature: JavaFX 24 - #3882

Merged
infeo merged 2 commits into
developfrom
feature/jfx24
Jun 3, 2025
Merged

infeo merged 2 commits into
developfrom
feature/jfx24

Conversation

@infeo

@infeo infeo commented Jun 3, 2025

Copy link
Copy Markdown
Member

Release notes for 24: https://gluonhq.com/products/javafx/openjfx-24-release-notes/

Notable changes:

  • Module javafx.graphics requires native access

@coderabbitai

coderabbitai Bot commented Jun 3, 2025

Copy link
Copy Markdown

Walkthrough

This change updates the OpenJFX (JavaFX) version from 23.0.2 (or 23.0.1 in one case) to 24.0.1 across all relevant build workflows and the Maven POM file. It also updates the corresponding SHA-256 checksums and download URLs for the new OpenJFX release in the GitHub Actions workflow files for AppImage, Debian, macOS, and Windows builds. Additionally, the --enable-native-access Java option is extended to include the javafx.graphics module in all build and run configurations, both in workflow files and IDE run configurations.

Possibly related PRs

Suggested labels

dependencies, java


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a699a79 and e956d27.

⛔ Files ignored due to path filters (4)
  • dist/linux/appimage/build.sh is excluded by !**/dist/**
  • dist/linux/debian/rules is excluded by !**/dist/**
  • dist/mac/dmg/build.sh is excluded by !**/dist/**
  • dist/win/build.ps1 is excluded by !**/dist/**
📒 Files selected for processing (12)
  • .github/workflows/appimage.yml (2 hunks)
  • .github/workflows/debian.yml (1 hunks)
  • .github/workflows/mac-dmg-x64.yml (2 hunks)
  • .github/workflows/mac-dmg.yml (2 hunks)
  • .github/workflows/win-exe.yml (2 hunks)
  • .idea/runConfigurations/Cryptomator_Linux.xml (1 hunks)
  • .idea/runConfigurations/Cryptomator_Linux_Dev.xml (1 hunks)
  • .idea/runConfigurations/Cryptomator_Windows.xml (1 hunks)
  • .idea/runConfigurations/Cryptomator_Windows_Dev.xml (1 hunks)
  • .idea/runConfigurations/Cryptomator_macOS.xml (1 hunks)
  • .idea/runConfigurations/Cryptomator_macOS_Dev.xml (1 hunks)
  • pom.xml (1 hunks)
🔇 Additional comments (17)
pom.xml (1)

49-49: Approve JavaFX version bump
The <javafx.version> property has been correctly updated to 24.0.1 to match the OpenJFX 24 release.

.idea/runConfigurations/Cryptomator_Linux_Dev.xml (1)

5-5: Enable native access for javafx.graphics
The --enable-native-access VM parameter now includes javafx.graphics, granting the graphics module the required native permissions.

.idea/runConfigurations/Cryptomator_Linux.xml (1)

5-5: Enable native access for javafx.graphics
Appends javafx.graphics to the existing --enable-native-access flag, aligning this run configuration with the JavaFX 24 requirement.

.idea/runConfigurations/Cryptomator_macOS.xml (1)

8-8: Enable native access for javafx.graphics
Adds javafx.graphics to the --enable-native-access VM parameter, ensuring the macOS configuration grants native access to the graphics module.

.idea/runConfigurations/Cryptomator_Windows.xml (1)

5-5: Enable native access for javafx.graphics
Extends the --enable-native-access option with javafx.graphics, giving the Windows launcher the necessary graphics module access.

.github/workflows/mac-dmg.yml (2)

43-44: Update OpenJFX download URL and checksum to 24.0.1
The download URL and SHA-256 hash have been updated to match the OpenJFX 24.0.1 release. Please verify that the checksum corresponds to the official GluonHQ release notes.


119-119: Enable native access for javafx.graphics module
Added javafx.graphics to the --enable-native-access option to satisfy the new native access requirement introduced in JavaFX 24. Confirm that this change is applied consistently and does not expose unwanted native operations.

.idea/runConfigurations/Cryptomator_macOS_Dev.xml (1)

8-8: Include javafx.graphics in Dev VM parameters
The --enable-native-access flag was extended to include javafx.graphics alongside org.cryptomator.jfuse.mac. This aligns the IDE run configuration with the CI packaging requirements for JavaFX 24.

.idea/runConfigurations/Cryptomator_Windows_Dev.xml (1)

5-5: Enable native access for javafx.graphics on Windows Dev
Appended javafx.graphics to the existing --enable-native-access list in the Windows Dev configuration, ensuring consistency with JavaFX 24 requirements.

.github/workflows/mac-dmg-x64.yml (2)

47-48: Update OpenJFX x64 download URL and checksum to 24.0.1
The workflow is now fetching the OpenJFX 24.0.1 x64 binaries with the updated SHA-256 checksum. Please confirm that the hash matches the official distribution.


123-123: Grant javafx.graphics native access for x64 build
Added javafx.graphics to the --enable-native-access flag in the jpackage step to comply with the new JavaFX 24 native access policy.

.github/workflows/appimage.yml (3)

38-39: Update AppImage x64 OpenJFX URL and checksum to 24.0.1
The x86_64 matrix entry now points to OpenJFX 24.0.1 binaries with the new SHA-256 checksum. Verify the checksum against the official GluonHQ release.


42-43: Update AppImage aarch64 OpenJFX URL and checksum to 24.0.1
The aarch64 matrix entry has been updated to the OpenJFX 24.0.1 download URL and its corresponding SHA-256 hash. Ensure this matches the official release notes.


118-118: Include javafx.graphics in AppImage native-access
Extended the --enable-native-access option to include javafx.graphics in the AppImage build, aligning with JavaFX 24’s native-access requirements.

.github/workflows/win-exe.yml (2)

130-130: Include javafx.graphics in native-access options.
Good catch adding javafx.graphics to --enable-native-access. Please confirm that jpackage correctly merges multiple --java-options entries and that the built installer launches without native-access errors.


24-25:

Details

❓ Verification inconclusive

Verify updated OpenJFX jmods URL and checksum.
Ensure the new Windows x64 jmods download (OPENJFX_JMODS_AMD64) and its SHA-256 (OPENJFX_JMODS_AMD64_HASH) match the official OpenJFX 24.0.1 release. You can verify with:


🏁 Script executed:

#!/bin/bash
set -e
curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip \
  | sha256sum | awk '{print "Got: "$1}'
echo "Expected: f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f"

Length of output: 402


🏁 Script executed:

#!/usr/bin/env bash
set -e
python - << 'EOF'
import hashlib, urllib.request
url = "https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip"
data = urllib.request.urlopen(url).read()
print("Got:    " + hashlib.sha256(data).hexdigest())
print("Expected: f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f")
EOF

Length of output: 2601


🏁 Script executed:

#!/usr/bin/env bash
set -e

# Ensure openssl is available
if ! command -v openssl > /dev/null; then
  echo "Error: openssl not found"
  exit 1
fi

# Download and compute SHA-256
curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip \
  | openssl dgst -sha256 | awk '{print "Got: "$2}'

echo "Expected: f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f"

Length of output: 97


Verify OpenJFX 24.0.1 Windows x64 jmods URL & SHA-256
Ensure the following entries in .github/workflows/win-exe.yml exactly match the official OpenJFX 24.0.1 release:

  OPENJFX_JMODS_AMD64: 'https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip'
  OPENJFX_JMODS_AMD64_HASH: 'f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f'

On a system with checksum utilities available, run:

curl -L https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip \
  | sha256sum    # or: openssl dgst -sha256

and verify the output matches
f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f

.github/workflows/debian.yml (1)

27-30:

Details

✅ Verification successful

Verify updated OpenJFX jmods URLs and checksums.
Ensure both Linux x64 and aarch64 jmods downloads and their SHA-256 sums are correct for OpenJFX 24.0.1:


🏁 Script executed:

#!/bin/bash
set -e
curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_linux-x64_bin-jmods.zip \
  | sha256sum | awk '{print "Got x64: "$1}'
echo "Expected x64: 425fac742b9fbd095b2ce868cff82d1024620f747c94a7144d0a4879e756146c"

curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_linux-aarch64_bin-jmods.zip \
  | sha256sum | awk '{print "Got aarch64: "$1}'
echo "Expected aarch64: 7e02edd0f4ee5527a27c94b0bbba66fcaaff41009119e45d0eca0f96ddfb6e7b"

Length of output: 832


Let’s switch to Python’s hashlib since sha256sum isn’t available in this environment.


🏁 Script executed:

#!/bin/bash
set -e

# pick available Python interpreter
if command -v python3 >/dev/null 2>&1; then PY=python3
elif command -v python >/dev/null 2>&1; then PY=python
else
  echo "Error: no Python interpreter found" >&2
  exit 1
fi

echo "Verifying x64 jmods…"
curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_linux-x64_bin-jmods.zip \
  | $PY -c "import sys,hashlib; print('Got x64:   {}'.format(hashlib.sha256(sys.stdin.buffer.read()).hexdigest()))"
echo "Expected x64: 425fac742b9fbd095b2ce868cff82d1024620f747c94a7144d0a4879e756146c"

echo
echo "Verifying aarch64 jmods…"
curl -sL https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_linux-aarch64_bin-jmods.zip \
  | $PY -c "import sys,hashlib; print('Got aarch64: {}'.format(hashlib.sha256(sys.stdin.buffer.read()).hexdigest()))"
echo "Expected aarch64: 7e02edd0f4ee5527a27c94b0bbba66fcaaff41009119e45d0eca0f96ddfb6e7b"

Length of output: 1100


✔️ OpenJFX 24.0.1 jmods URLs and checksums verified
Both the Linux x64 and aarch64 downloads produce the expected SHA-256 hashes:

• File: .github/workflows/debian.yml (lines 27–30)
– OPENJFX_JMODS_AMD64: 425fac742b9fbd095b2ce868cff82d1024620f747c94a7144d0a4879e756146c
– OPENJFX_JMODS_AARCH64: 7e02edd0f4ee5527a27c94b0bbba66fcaaff41009119e45d0eca0f96ddfb6e7b

No changes needed.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@infeo

infeo commented Jun 3, 2025

Copy link
Copy Markdown
Member Author

The following installers/apps were successfully tested:

  • EXE
  • AppImage x86_64
  • DEB
  • DMG arm64

@infeo infeo added this to the next milestone Jun 3, 2025
@infeo infeo self-assigned this Jun 3, 2025
@infeo
infeo merged commit 941b4e3 into develop Jun 3, 2025
@infeo
infeo deleted the feature/jfx24 branch June 3, 2025 13:51
infeo added a commit that referenced this pull request Jun 3, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant