diff --git a/core/src/mindustry/Vars.java b/core/src/mindustry/Vars.java index 8be5dd9617..5bbba52526 100644 --- a/core/src/mindustry/Vars.java +++ b/core/src/mindustry/Vars.java @@ -323,7 +323,8 @@ public static void init(){ bases = new BaseRegistry(); logicVars = new GlobalVars(); javaPath = - new Fi(OS.prop("java.home")).child("bin/java").exists() ? new Fi(OS.prop("java.home")).child("bin/java").absolutePath() : + new Fi(OS.prop("java.home")).child("bin/java").exists() ? new Fi(OS.prop("java.home")).child("bin/java").absolutePath() : // Unix + new Fi(OS.prop("java.home")).child("bin/java.exe").exists() ? new Fi(OS.prop("java.home")).child("bin/java.exe").absolutePath() : // Windows Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() : // Unix Core.files.local("jre/bin/java.exe").exists() ? Core.files.local("jre/bin/java.exe").absolutePath() : // Windows "java"; // Fallback