Replies: 3 comments 1 reply
-
| For Windows: | 
Beta Was this translation helpful? Give feedback.
-
| 
 The  On the other hand, if you are already using Toolchains, you may not need an  | 
Beta Was this translation helpful? Give feedback.
-
| To stop repeating your Java version, set the JAVA_HOME environment variable and add the bin directory to the PATH variable. This ensures your system uses the specified Java version without needing constant repetition. Find your Java installation path:https://vytcdc.us/java-online-training/ On Windows: C:\Program Files\Java\jdk1.x.x On Windows: On Windows: Open a new terminal/cmd window and type: | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently declaring my Java version in 3 places:
.sdkmanrcasjava=17.0.9-tembuild.gradle.ktsasjvmToolchain(17)DockerfileasFROM eclipse-temurin:17.0.9_9-jdk-focalThat seems bad... anyone got any tricks for avoiding this redeclaration?
I think I can interpolate into the
Dockerfileusing a.envfile containingJAVA_VERSION=17.0.9_9, and I can probably hack something in Gradle to read the value from a different file, but it looks like there's no way to parameterise.sdkmanrc?Beta Was this translation helpful? Give feedback.
All reactions