Skip to content

sdkman jdk provider does not resolve and use available jdk versions #95

@ayagmar

Description

@ayagmar

Describe the bug
With --jdk-providers=sdkman, devkitman fails to detect installed SDKMAN JDKs by version when folder names are normal SDKMAN names like 25.0.1-tem for example

To Reproduce

  1. Ensure SDKMAN has Java 25 installed (e.g. 25.0.1-tem) and Java 21 current.
  2. Run:
    jbang --verbose run --jdk-providers=sdkman demos@tamboui --help`
  3. Observe log:
    • Using JDK provider(s): SdkmanJdkProvider
    • then: No suitable JDK was found for requested version: 25
Image

Expected behavior
SDKMAN provider should detect installed JDK folders like 25.0.1-tem and satisfy java: 25+ without failing lookup.

JBang version
[jbang] [0:510] jbang version 0.135.1
Cache: /home/ayagmar/.jbang/cache
Config: /home/ayagmar/.jbang
Repository: /home/ayagmar/.m2/repository
Java: /home/ayagmar/.sdkman/candidates/java/21-tem [21]
OS: linux
Arch: x64
Shell: bash
Native Image: false
0.135.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions