Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 18, 2026

Users cannot distinguish JDK versions bundled with JavaFX from standard versions. The foojay API provides a javafx_bundled field that was not being utilized.

Changes

  • hooks/available.lua: Append -fx suffix to versions where javafx_bundled: true; show "JavaFX" in notes column
  • lib/distribution_version.lua: Parse fx token from version strings (e.g., 21.0.5-zulu-fx) and expose javafx_bundled flag
  • hooks/pre_install.lua: Filter JDK packages by JavaFX requirement to ensure correct package selection
  • Documentation: Update both READMEs with usage examples

Usage

# Search shows -fx suffix for JavaFX versions
vfox search java zulu
# 21.0.5-zulu
# 21.0.5-zulu-fx    # JavaFX

# Install JavaFX bundled version
vfox install java@21.0.5-zulu-fx
Original prompt

This section details on the original issue you should resolve

<issue_title>如何安装带fx的版本</issue_title>
<issue_description>通过版本号却分不出来,还是根本没有带fx的版本呢?
sdkman是可以的,刚切换到vfox,看来sdkman还不能弃用</issue_description>

<agent_instructions>foojay 里有字段可以区分的,lua 层需要解析后显示的时候处理一下,然后版本号里也可以加个 fx 来区分
是这个字段:
"javafx_bundled": true,</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 18, 2026 19:05
Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
Copilot AI changed the title [WIP] Add distinction for versions with fx in foobar Add JavaFX bundled version support with -fx suffix Jan 18, 2026
Copilot AI requested a review from bytemain January 18, 2026 19:07
@bytemain
Copy link
Member

@copilot many other tools will display fx after the distribution, like zulu-fx,

…zulu)

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 18, 2026

@copilot many other tools will display fx after the distribution, like zulu-fx,

Updated in 04b4dc4. The -fx suffix is now placed after the distribution name (e.g., 21.0.5-zulu-fx instead of 21.0.5-fx-zulu) to match the convention used by other tools.

@bytemain bytemain marked this pull request as ready for review January 18, 2026 19:16
@bytemain bytemain merged commit 6d51d65 into main Jan 18, 2026
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.

如何安装带fx的版本

2 participants