Skip to content

Commit

Permalink
fix invalid JAVA_HOME directory error
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Nazarov authored and Gleb Nazarov committed Nov 26, 2024
1 parent 3d8b9c7 commit f34df17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ RUN apt update \
USER developer

ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64

RUN export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 \
&& export "JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.bash_profile

0 comments on commit f34df17

Please sign in to comment.