kaikramer / keystore-explorer

KeyStore Explorer is a free GUI replacement for the Java command-line utilities keytool and jarsigner.
https://keystore-explorer.org/
GNU General Public License v3.0
1.67k stars 271 forks source link

No Java Runtime found except when working directory is install path #373

Closed Tabiskabis closed 1 year ago

Tabiskabis commented 2 years ago

The app starts and works fine when i start kse.exe while the working directory is the install path.

When the working direcotry (or shortcut to kse is set to "start in") somewhere else, i get an error message: "No Java Runtime found! Please set JAVA_HOME!" (title: "Error Detecting Java Installation")
Same thing also happens when trying to open .jks files (or other filetypes) linked to open with the app.

Obviously this is the Windows version with embeddd Java Runtime.

Might be an issue that i first installed the java-free version, then realized i don't have OpenJDK on that machine, and installed the with-java after that?

Tabiskabis commented 2 years ago

Worked around by changing the file association command to cmd.exe /S /C "cd "%LocalAppData%\Programs\KeyStore Explorer" & "kse.exe" "%1""
(replace %LocalAppData% with full path)

kaikramer commented 2 years ago

Thanks for reporting and also thanks for the workaround! This might help other KSE users who encounter the same problem.