Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown protocol: jar #17

Open
Signum21 opened this issue Mar 6, 2022 · 0 comments
Open

Unknown protocol: jar #17

Signum21 opened this issue Mar 6, 2022 · 0 comments

Comments

@Signum21
Copy link

Signum21 commented Mar 6, 2022

I'm trying to run the script inside Ghidra but it gives me multiple errors caused by "Unknown protocol: jar"
I have OpenJdk 17.0.2
I don't have Python but it shouldn't be a problem since Ghidra has it
I'm on Windows

Traceback (most recent call last):
File "D:\Documents\Ghidra\Plugin\ghidra2dwarf\ghidra2dwarf.py", line 34, in
from libdwarf import LibdwarfLibrary
java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at org.python.core.Py.loadAndInitClass(Py.java:1160)
at org.python.core.Py.findClassInternal(Py.java:1095)
at org.python.core.Py.findClassEx(Py.java:1147)
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:1484)
at org.python.core.imp.ensureFromList(imp.java:1449)
at org.python.core.imp.import_module_level(imp.java:1377)
at org.python.core.imp.importName(imp.java:1528)
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:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at org.python.pycode._pyx42.f$0(D:/Documents/Ghidra/Plugin/ghidra2dwarf/ghidra2dwarf.py:518)
at org.python.pycode._pyx42.call_function(D:/Documents/Ghidra/Plugin/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:1687)
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.RuntimeException: java.net.MalformedURLException: Unknown protocol: jar
at org.python.core.SyspathJavaLoader.findResource(SyspathJavaLoader.java:152)
at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1403)
at com.sun.jna.Native.extractFromResourcePath(Native.java:1085)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:276)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455)
at com.sun.jna.Library$Handler.(Library.java:192)
at com.sun.jna.Native.loadLibrary(Native.java:646)
at com.sun.jna.Native.loadLibrary(Native.java:630)
at libdwarf.LibdwarfLibrary.(LibdwarfLibrary.java:13)
... 29 more
Caused by: java.net.MalformedURLException: Unknown protocol: jar
at java.base/java.net.URL.(URL.java:708)
at java.base/java.net.URL.(URL.java:569)
at java.base/java.net.URL.(URL.java:516)
at org.python.core.SyspathJavaLoader.findResource(SyspathJavaLoader.java:150)
... 37 more
Caused by: java.lang.IllegalStateException: Unknown protocol: jar
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
at java.base/java.net.URL.(URL.java:703)
... 40 more
java.lang.ExceptionInInitializerError: java.lang.ExceptionInInitializerError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant