Skip to content

unable to map requested Java version of "21" to a UBI supported runtime #16

@cmoulliard

Description

@cmoulliard

Issue

We got this error during a build using the UBI8 Builder image

2025-05-14T18:06:14+02:00 Paketo UBI Java Extension 0.2.0
2025-05-14T18:06:14+02:00
2025-05-14T18:06:14+02:00   Build Configuration:
2025-05-14T18:06:14+02:00     $BP_JVM_VERSION  "21"  the Java version
2025-05-14T18:06:14+02:00     Using Java version "21" from BP_JVM_VERSION
2025-05-14T18:06:14+02:00
2025-05-14T18:06:14+02:00 Paketo UBI Java Extension 0.2.0
2025-05-14T18:06:14+02:00   error invoking dockerfile callback
2025-05-14T18:06:14+02:00   unable to obtain ubi package/runtime
2025-05-14T18:06:14+02:00   unable to map requested Java version of "21" to a UBI supported runtime
2025-05-14T18:06:14+02:00 Timer: Generator ran for 44.466432ms and ended at 2025-05-14T16:06:14Z
2025-05-14T18:06:14+02:00 ERROR: failed to build: exit status 1

when we set the env var using double quotes

BP_JVM_VERSION="21"

The error is gone using

BP_JVM_VERSION=21

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