Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: RISC-V Platform Support in SDKMAN! #1321

Open
1 of 2 tasks
gounthar opened this issue Oct 21, 2024 · 0 comments
Open
1 of 2 tasks

Feature: RISC-V Platform Support in SDKMAN! #1321

gounthar opened this issue Oct 21, 2024 · 0 comments

Comments

@gounthar
Copy link

Feature request

SDKMAN! currently identifies RISC-V 64-bit (riscv64) architecture as an "Exotic" platform, which results in no Java candidates being available for installation. This is becoming an increasingly important issue as RISC-V adoption grows in both development and production environments.

Current Behavior

When running sdk list java on a riscv64 system, SDKMAN! returns no available versions:

================================================================================
Available Java Versions for Exotic
================================================================================
 Vendor        | Use | Version      | Dist    | Status     | Identifier
--------------------------------------------------------------------------------
No versions available for your platform at this time.
================================================================================
Omit Identifier to install default version 21.0.5-tem:
    $ sdk install java
Use TAB completion to discover available versions
    $ sdk install java [TAB]
Or install a specific version by Identifier:
    $ sdk install java 21.0.5-tem
Hit Q to exit this list view
================================================================================

I have the JDK17 open JDK by default on riscv64, and I manually installed the JDK21 by Temurin.

Requested Feature

Add proper platform identification and support for RISC-V 64-bit architecture (riscv64) in SDKMAN!, similar to how x86_64 and aarch64 platforms are handled. This would:

  1. Correctly identify riscv64 as its own platform instead of "Exotic"
  2. Allow listing and installation of Java distributions that support RISC-V (e.g., Bell-Soft LibericaJDK)

Justification

  • RISC-V is gaining significant traction in both embedded systems and server environments
  • Several major Java distributions now offer RISC-V builds
  • Proper RISC-V support would make SDKMAN! more valuable for developers working on this emerging platform

Technical Details

Platform detection could be updated to recognize uname -m output of riscv64 and map it to an appropriate platform identifier rather than falling back to "Exotic".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant