Skip to content

How to do initial JBang setup without Foojay? #2377

@quintesse

Description

@quintesse

If we want to be independent of Foojay, which has proven to be unreliable, then we need to figure out how to get a download link to the first JDK that needs to be installed if no JDK is available on the user's system.

An alternative service like Java Metadata unfortunately doesn't give us a way to easily filter it's results and extract only a single element.

On Linux/Mac it might still be somewhat doable but on Windows it's will most likely be very difficult.

Solutions?

  • Foojay, back in the day, created an endpoint just for that purpose. The person behind Metadata is pretty flexible so might be willing to accept a PR from us that implements something that we can use. (But what exactly? A folder with .url files with os-arch-vendor-version names?)
  • The other option might be that we add a folder like that of our own to a github.com/jbangdev/jdk-verions repo of some sort. (We could do it "lazy" and only have a list for temurin/aoj and fall back to foojay if someone asks for a different vendor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions