-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Adding an issue here in case anyone else runs into the same issue.
I installed ghidra2dwarf by extracting the release zipfile and adding the resulting ghidra2dwarf directory to the Script Manager. However, when I run the script, Python gives me an error that says it cannot load the library:
ghidra2dwarf.py> Running...
Traceback (most recent call last):
File "/Users/seancross/Code/Ghidra/ghidra2dwarf/ghidra2dwarf.py", line 34, in <module>
from libdwarf import LibdwarfLibrary
java.lang.NoClassDefFoundError: Could not initialize class libdwarf.LibdwarfLibrary
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:534)
at java.base/java.lang.Class.forName(Class.java:513)
at org.python.core.Py.loadAndInitClass(Py.java:1176)
at org.python.core.Py.findClassInternal(Py.java:1111)
at org.python.core.Py.findClassEx(Py.java:1163)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:233)
at org.python.core.packagecache.PackageManager.findClass(PackageManager.java:36)
at org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:221)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:902)
at org.python.core.PyObject.__findattr__(PyObject.java:889)
at org.python.core.imp.ensureFromList(imp.java:1500)
at org.python.core.imp.ensureFromList(imp.java:1465)
at org.python.core.imp.import_module_level(imp.java:1379)
at org.python.core.imp.importName(imp.java:1544)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1636)
at org.python.core.imp.importFrom(imp.java:1611)
at org.python.pycode._pyx41.f$0(/Users/seancross/Code/Ghidra/ghidra2dwarf/ghidra2dwarf.py:524)
at org.python.pycode._pyx41.call_function(/Users/seancross/Code/Ghidra/ghidra2dwarf/ghidra2dwarf.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1703)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:535)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:287)
at ghidra.python.GhidraPythonInterpreter.execFile(GhidraPythonInterpreter.java:239)
at ghidra.python.PythonScriptExecutionThread.run(PythonScriptExecutionThread.java:51)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native [in thread "Python script execution thread"]
at libdwarf.LibdwarfLibrary.<clinit>(LibdwarfLibrary.java:13)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:534)
at java.base/java.lang.Class.forName(Class.java:513)
at org.python.core.Py.loadAndInitClass(Py.java:1176)
at org.python.core.Py.findClassInternal(Py.java:1111)
at org.python.core.Py.findClass(Py.java:1145)
at org.python.core.JavaImportHelper.isJavaClass(JavaImportHelper.java:184)
at org.python.core.JavaImportHelper.tryAddPackage(JavaImportHelper.java:42)
at org.python.core.imp.import_next(imp.java:1168)
at org.python.core.imp.import_module_level(imp.java:1352)
... 15 more
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class libdwarf.LibdwarfLibrary
ghidra2dwarf.py> Finished!
Metadata
Metadata
Assignees
Labels
No labels