diff --git a/build/installers/liferay-workspace-with-devstudio/liferay-workspace-with-devstudio.xml b/build/installers/liferay-workspace-with-devstudio/liferay-workspace-with-devstudio.xml
index bc2f453938..e6e132f696 100644
--- a/build/installers/liferay-workspace-with-devstudio/liferay-workspace-with-devstudio.xml
+++ b/build/installers/liferay-workspace-with-devstudio/liferay-workspace-with-devstudio.xml
@@ -95,21 +95,6 @@
-
-
-
-
-
-
- equals
- ${java_version}
- 17
-
-
-
-
-
-
@@ -424,6 +409,21 @@ ${java_executable}
+
+
+
+
+
+
+ contains
+ ${java_version}
+ 17
+
+
+
+
+
+
diff --git a/build/installers/liferay-workspace/liferay-workspace.xml b/build/installers/liferay-workspace/liferay-workspace.xml
index e2fb9d0efc..c2afca798d 100644
--- a/build/installers/liferay-workspace/liferay-workspace.xml
+++ b/build/installers/liferay-workspace/liferay-workspace.xml
@@ -240,39 +240,26 @@
+
+ nativeAbsolutize
+ ${java_executable}/..
+ java_bin_dir
+
-
+
- equals
- 1
+ contains
${java_version}
17
-
-
-
-
-
-
- contains
- 1
- ${java_version}
- 17
-
-
-
+
-
-
- nativeAbsolutize
- ${java_executable}/..
- java_bin_dir
-
+
../components/run-java-jpm-win.xml