Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/proc-windows-select-specific-jdk-perapplication.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can select a specific JDK from the installed versions on {msw} for an applic
. Set the value of the environment variable to your JDK (or JRE) installation path:
+
----
setx -m JAVA_HOME "Path to Java"
setx /m JAVA_HOME "Path to Java"
----
+
If the path contains spaces, use the shortened path name.
Expand All @@ -33,5 +33,5 @@ echo %JAVA_HOME%
. Set the value of path variable:
+
----
setx -m PATH "%PATH%;%JAVA_HOME%\bin";
setx /m PATH "%PATH%;%JAVA_HOME%\bin";
----
2 changes: 1 addition & 1 deletion modules/proc-windows-updating-openjdk-zip.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include::../modules/snip-windows-add-java-home-env-variable.adoc[]
. Set the value of path variable if it is not set already:
+
----
C:\> setx -m PATH "%PATH%;%JAVA_HOME%\bin";
C:\> setx /m PATH "%PATH%;%JAVA_HOME%\bin";
----

. Restart the command prompt to reload the environment variables.
Expand Down