Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Cannot find java #45

Open
JeroenKnoops opened this issue Dec 13, 2022 · 2 comments
Open

Cannot find java #45

JeroenKnoops opened this issue Dec 13, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@JeroenKnoops
Copy link
Member

JeroenKnoops commented Dec 13, 2022

When using this image as part of a github action it cannot find java

@JeroenKnoops JeroenKnoops added the bug Something isn't working label Dec 13, 2022
@JeroenKnoops JeroenKnoops self-assigned this Dec 13, 2022
@JeroenKnoops
Copy link
Member Author

I'm going to investigate this.

@JeroenKnoops
Copy link
Member Author

We've found the issue.

When using this image together with the github setup-java the JAVA_HOME path is set differently from the path in the container. This causes the problem.

      - name: Set up Java 17
        uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # v3.9.0
        with:
          java-version: '17'
          distribution: 'microsoft'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant