Closed Marantz2600 closed 7 months ago
Somehow, the file about packages installed failed to attach. Trying again... installed.txt
I suppose that I should also mention that I am not good at Java.
I used the instructions below to guide me in setting up Java on my system.
Just for fun, I tried stripping stuff out of the command while still reproducing the error...
$ java -Djava.system.class.loader=ghidra.GhidraClassLoader -cp /home/sls/ghidra/ghidra_11.0.1_PUBLIC/Ghidra/Framework/Utility/lib/Utility.jar ghidra.Ghidra ghidra.GhidraRun
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "ghidra.GhidraClassLoader"). To use archived non-system classes, this property must not be set
INFO Using log config file: jar:file:/home/sls/ghidra/ghidra_11.0.1_PUBLIC/Ghidra/Framework/Generic/lib/Generic.jar!/generic.log4j.xml (LoggingInitialization)
INFO Using log file: /home/sls/.ghidra/.ghidra_11.0.1_PUBLIC/application.log (LoggingInitialization)
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "Ghidra"
Got it to work...
My video card has multiple video outputs. So X11 doesn't know which to use by default and I haven't figured out yet how to configure it correctly so that things just work.
So I have to specify in the CLI, the prefix "DISPLAY=:0" on any application using X11.
The following worked and opened the application.
sls@sls-dell490:~/ghidra/ghidra_11.0.1_PUBLIC/support$ DISPLAY=:0 java -Djava.system.class.loader=ghidra.GhidraClassLoader -cp ../Ghidra/Framework/Utility/lib/Utility.jar ghidra.Ghidra ghidra.GhidraRun
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "ghidra.GhidraClassLoader"). To use archived non-system classes, this property must not be set
INFO Using log config file: jar:file:/home/sls/ghidra/ghidra_11.0.1_PUBLIC/Ghidra/Framework/Generic/lib/Generic.jar!/generic.log4j.xml (LoggingInitialization)
INFO Using log file: /home/sls/.ghidra/.ghidra_11.0.1_PUBLIC/application.log (LoggingInitialization)
INFO Loading user preferences: /home/sls/.ghidra/.ghidra_11.0.1_PUBLIC/preferences (Preferences)
INFO Searching for classes... (ClassSearcher)
INFO Class search complete (2750 ms) (ClassSearcher)
INFO Initializing SSL Context (SSLContextInitializer)
INFO Initializing Random Number Generator... (SecureRandomFactory)
INFO Random Number Generator initialization complete: NativePRNGNonBlocking (SecureRandomFactory)
INFO Trust manager disabled, cacerts have not been set (ApplicationTrustManagerFactory)
INFO User sls started Ghidra. (GhidraRun)
Stupid Java for the cryptic error message with no hint as to the failure point.
Stupid X11 for being just a bit too complicated. Just pick the first display and say what choice was made?
Stupid, stupid, stupid...
On Debian 12, I am unable to launch Ghidra When trying to use the default command, "ghidraRun", it fails silently.
Digging down a bit, I tried to construct arguments to the launch.sh script.
To Reproduce
Steps to reproduce the behavior:
Expected behavior I am hoping that a window will pop up with a user interface allowing me to use the Ghidra application.
Attachments Attached, in the file "installed.txt", is a list of the installed packages on my system. I have also attached a file, "machine-info.txt", that shows uname output and some other stuff.
Environment (please complete the following information):
OS: Debian 12 Bookworm, installed in the last month or so machine-info.txt
Java Version: ... $ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment (build 17.0.10+7-Debian-1deb12u1) OpenJDK 64-Bit Server VM (build 17.0.10+7-Debian-1deb12u1, mixed mode, sharing) ...
Ghidra Version: Ghidra 11.0.1
Ghidra Origin: https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.0.1_build