Ads Top

Peter-bochs debugger exception when run



If you see the "java.lang.UnsatisfiedLinkError" exception while starting peter-bochs, like this:

> C:\Dev\Bochs-2.4.6>java -jar peter-bochs-debugger20111224.jar

> C:\Dev\Bochs-2.4.6\bochsdbg.exe -q -f miKernel.bxrc> java.lang.UnsatisfiedLinkError: C:\Dev\Bochs-2.4.6\jogl_awt.dll: Can't find dependent libraries> at java.lang.ClassLoader$NativeLibrary.load(Native Method)> at java.lang.ClassLoader.loadLibrary0(Unknown Source)> at java.lang.ClassLoader.loadLibrary(Unknown Source)> at java.lang.Runtime.load0(Unknown Source)> at java.lang.System.load(Unknown Source)> at peter.Application.main(Application.java:580)> Native code library failed to load.> java.lang.UnsatisfiedLinkError: C:\Dev\Bochs-2.4.6\jogl_awt.dll: Can't find dependent libraries> Solution : Please add "-Djava.library.path=." to start peter-bochs java.lang.UnsatisfiedLinkError: C:\Dev\Bochs-2.4.6\jogl_awt.dll: Can't find dependent libraries


Reason is : peter-bochs used jzy3d to generate the 3D memory profiling chart, jzy3d used JOGL library but JOGL library is not built-in to JRE, so we have to load the DLL by ourselves. peter-bochs will try to exact the DLL you need, so in the directory you ran peter-bochs, you will see some DLL files have been extracted. Please add command line parameter -Djava.library.path=. when you start peter-bochs, hopefully can fix this issue.



沒有留言:

技術提供:Blogger.