Find the path by finding the JRE and traversing up

This commit is contained in:
idk
2021-04-03 19:53:09 -04:00
parent b8a4633113
commit 0c3fe5b37d

View File

@ -59,9 +59,7 @@ public class WinLauncher {
private static File selectProgramFile() throws Exception {
File jrehome = new File(System.getProperty("java.home"));
File programs = jrehome.getParentFile();
File i2p;
i2p = new File(programs, "I2P");
return i2p.getAbsoluteFile();
return programs.getAbsoluteFile();
}
}