question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setup_java not finding Java 16 (regression)

See original GitHub issue

Description: In the last hour actions using ‘setup_java’ are failing with:

 'Could not find satisfied version for SemVer '16'. '

Task version: v2 (all that is specified)

Platform:

  • Ubuntu (default GitHub runner)
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Run a ci/cd workflow with the setup_java action ie https://github.com/odpi/egeria/actions/runs/1093904854

Expected behavior: Build to work with java 16 (adopt)

Actual behavior: Run actions/setup-java@v2 2 with: 3 distribution: adopt 4 java-version: 16 5 java-package: jdk 6 architecture: x64 7 check-latest: false 8 server-id: github 9 server-username: GITHUB_ACTOR 10 server-password: GITHUB_TOKEN 11 overwrite-settings: true 12 Trying to resolve the latest version from remote 13 Error: Could not find satisfied version for SemVer ‘16’.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:25 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
steveteubercommented, Aug 3, 2021

It’s look like that the backend https://api.adoptopenjdk.net/ has some problems…

2reactions
chburmeistercommented, Aug 3, 2021

same for ubuntu

     - name: Set up JDK
        uses: actions/setup-java@v2.1.0
        with:
          java-version: '15'
          distribution: 'adopt'

Error: Could not find satisfied version for SemVer ‘15’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the right Java · MultiMC/Launcher Wiki
A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once - Using the right Java ·...
Read more >
Troubleshooting tips for running Java
Basic troubleshooting tips for Java issues. If you are having problems related to Java, the following tips should help you getting things working....
Read more >
Install the Java Runtime Environment
Overview. The Java Runtime Environment (JRE) is required to run Java programs. Nowadays there are many JRE packages available from a variety of...
Read more >
How to Install Java on Windows {Step-by-Step Guide}
Before installing the Java Development Kit, check if a Java version is already installed on Windows. Follow the steps below:.
Read more >
Which Version of Java Should You Use?
It's important to note that even in 2022, many applications continue to run on Java 8 and Java 11. While Java 17 offers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found