Fix javaPath not looking for .exe (#7590)
I never tested this on windows and finally decided to get to the bottom of all the weird reports ive been getting
This commit is contained in:
@@ -316,7 +316,8 @@ public class Vars implements Loadable{
|
|||||||
logicVars = new GlobalVars();
|
logicVars = new GlobalVars();
|
||||||
javaPath =
|
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() :
|
||||||
Core.files.local("jre/bin/java").exists() ? Core.files.local("jre/bin/java").absolutePath() :
|
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";
|
"java";
|
||||||
|
|
||||||
state = new GameState();
|
state = new GameState();
|
||||||
|
|||||||
Reference in New Issue
Block a user