Skip to content

Oracle JDK is only supported for JDK 17 and later #907

@tumatanquang

Description

@tumatanquang

Description:
When trying to install Oracle JDK 8, it gave an error:

Run actions/setup-java@v4
Installed distributions
  Trying to resolve the latest version from remote
  Error: Oracle JDK is only supported for JDK 17 and later

Task version:
4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Github Actions:

...
jobs:
  jdkwithmaven:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up JDK
        uses: actions/setup-java@v4
        with:
          java-version: '8'
          distribution: 'oracle'

      - name: Set up Maven Cache
        uses: actions/cache@v4
        with:
          path: ~/.m2
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
            ${{ runner.os }}-maven-
...

Expected behavior:
It should install JDK 8 normally since it is an LTS version.

Actual behavior:

Error: Oracle JDK is only supported for JDK 17 and later

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions