GhidraDev can't find supported JDK #7500
-
Does anyone know what criteria GhidraDev (the Eclipse plugin) uses to find the JDK? With Ghidra 11.3, I am unable to link my project to Ghidra, with the error message saying "A supported JDK is not associated with this Ghidra installation. Please run this Ghidra and try again." I'm on a Windows 11 machine, using Microsoft JDK 21.0.6. So far I have:
And yet the issue persists. Ghidra itself starts fine, with the splash screen listing the JDK that I have installed. I saw #6215, but it simply mentioned installing a JDK, which I already have. I was using this JDK fine for older versions, so I'm not sure where this issue came from. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
If you execute "javac --version", do you get "javac 21.0.6"? |
Beta Was this translation helpful? Give feedback.
-
It looks for the Ghidra installation's user settings directory...there should be a java_home.save file in there. |
Beta Was this translation helpful? Give feedback.
-
I can't find a However, I was able to get it to progress by executing The version GhidraDev reports is 5.0.202501081224. I'm assuming it's the most up to date as it was installed by Ghidra 11.3. At least, that's what I'm assuming happened after I blew away my Eclipse install and re-did my Eclipse integrations with the new install. I haven't purposefully modified |
Beta Was this translation helpful? Give feedback.
Actually I see that a set JAVA_HOME is indeed preventing Ghidra from writing java_home.save. I will get it fixed tomorrow for an upcoming patch release.