From 76ab8c504c3d094b3c9d3b2034a4c16384220926 Mon Sep 17 00:00:00 2001 From: "Begonia, HE" <163421589+BegoniaHe@users.noreply.github.com> Date: Fri, 16 Jan 2026 07:46:13 +0100 Subject: fix(windows): resolve Java executable path issues on Windows - Add normalize_java_path utility function with Windows-specific handling - Automatically append .exe extension when missing on Windows - Use 'where' command to locate java.exe in PATH if not found - Improve error messages with full path display for debugging - Apply path normalization in both start_game and install_forge commands This fixes the "Failed to launch java: program not found" error on Windows by properly handling Java executable paths, including relative paths, missing extensions, and PATH resolution. Reviewed-by: Claude Sonnet 4.5 --- src-tauri/src/utils/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src-tauri/src/utils/mod.rs') diff --git a/src-tauri/src/utils/mod.rs b/src-tauri/src/utils/mod.rs index 00b9087..651d26b 100644 --- a/src-tauri/src/utils/mod.rs +++ b/src-tauri/src/utils/mod.rs @@ -1,4 +1,5 @@ pub mod zip; +pub mod path; // File system related utility functions #[allow(dead_code)] -- cgit v1.2.3-70-g09d2