-
I am trying to isolate an error happening in all Java scripts. As an example, I am using the Skeleton script here: Here is the error:
The code is copied and pasted into that java file named |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Fixing this will depend on your operating system. You'll need to go to the user ghidra folder where the application.log and preferences are stored. In that folder will be a folder named osgi. Delete the osgi folder and try again. I run into this problem all the time even with the scripts provided with Ghidra. It has become increasingly frustrating. |
Beta Was this translation helpful? Give feedback.
-
@astrelsky I tried what you suggested, but the error is still there. No java-based scripts can run. Not even a hello world. I have also tried deleting the whole ~/.ghidra directory and still no change: nothing will run. |
Beta Was this translation helpful? Give feedback.
-
I found the answer: Ghidra is not compatible with Java 22. Downgrading to 21.0.3 and the error no longer happens. |
Beta Was this translation helpful? Give feedback.
-
Hmm downgrading java to 21.0.4 doesn't solve the issue here (ghidra 11.0.3 on linux) |
Beta Was this translation helpful? Give feedback.
I found the answer: Ghidra is not compatible with Java 22. Downgrading to 21.0.3 and the error no longer happens.