GP-5381: Fixed a bug that prevented Ghidra from remembering the

last-used JDK when the JAVA_HOME environment variable was set
(Closes #7503)
This commit is contained in:
Ryan Kurtz 2025-02-14 05:49:22 -05:00
parent e2d47f4c35
commit 61c15860f0

View file

@ -202,6 +202,9 @@ public class LaunchSupport {
if (javaHome != null) {
javaHomeDir = new File(javaHome);
if (appConfig.isSupportedJavaHomeDir(javaHomeDir, javaFilter)) {
if (save) {
appConfig.saveJavaHome(javaHomeDir);
}
System.out.println(javaHomeDir);
return EXIT_SUCCESS;
}