Skip to content

Commit 4c1bb18

Browse files
Merge pull request #120 from devcontainers/samruddhikhandale/fix-test
Java: fix test
2 parents ed151e9 + b0486e9 commit 4c1bb18

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/java/.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM mcr.microsoft.com/devcontainers/base:${BASE_IMAGE_VERSION_CODENAME}
55

66
USER root
77
ARG TARGET_JAVA_VERSION
8-
ENV JAVA_HOME /usr/lib/jvm/msopenjdk-${TARGET_JAVA_VERSION}
8+
ENV JAVA_HOME /usr/lib/jvm/msopenjdk-current
99
ENV PATH "${JAVA_HOME}/bin:${PATH}"
1010
# Default to UTF-8 file.encoding
1111
ENV LANG en_US.UTF-8

src/java/.devcontainer/devcontainer.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
},
1010
"ghcr.io/devcontainers/features/node:1": "none"
1111
},
12+
"containerEnv": {
13+
"JAVA_HOME": "/usr/lib/jvm/msopenjdk-current"
14+
},
1215
// Configure tool-specific properties.
1316
"customizations": {
1417
// Configure properties specific to VS Code.

0 commit comments

Comments
 (0)