We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed151e9 + b0486e9 commit 4c1bb18Copy full SHA for 4c1bb18
src/java/.devcontainer/Dockerfile
@@ -5,7 +5,7 @@ FROM mcr.microsoft.com/devcontainers/base:${BASE_IMAGE_VERSION_CODENAME}
5
6
USER root
7
ARG TARGET_JAVA_VERSION
8
-ENV JAVA_HOME /usr/lib/jvm/msopenjdk-${TARGET_JAVA_VERSION}
+ENV JAVA_HOME /usr/lib/jvm/msopenjdk-current
9
ENV PATH "${JAVA_HOME}/bin:${PATH}"
10
# Default to UTF-8 file.encoding
11
ENV LANG en_US.UTF-8
src/java/.devcontainer/devcontainer.json
@@ -9,6 +9,9 @@
},
"ghcr.io/devcontainers/features/node:1": "none"
12
+ "containerEnv": {
13
+ "JAVA_HOME": "/usr/lib/jvm/msopenjdk-current"
14
+ },
15
// Configure tool-specific properties.
16
"customizations": {
17
// Configure properties specific to VS Code.
0 commit comments