序
在升级了mac操作系统到Sierra版本之后,之前的jd-gui就闪退了,本文就讲述一下如何解决这个问题。
jdk版本
使用的是jdk8
崩溃日志实例
Date/Time: 2016-09-22 11:28:18.416 +0700OS Version: Mac OS X 10.12 (16A323)Report Version: 12Anonymous UUID: 1611245A-06D9-C16E-B5A3-A2BCF51CC12CSleep/Wake UUID: B23BDF91-F082-46BA-9EB3-99D558FC4472Time Awake Since Boot: 39000 secondsTime Since Wake: 10000 secondsSystem Integrity Protection: enabledCrashed Thread: UnknownException Type: EXC_BAD_ACCESS (SIGSEGV)Exception Codes: KERN_INVALID_ADDRESS at 0x00000000241499f5Exception Note: EXC_CORPSE_NOTIFYTermination Signal: Segmentation fault: 11Termination Reason: Namespace SIGNAL, Code 0xbTerminating Process: exc handler [0]Backtrace not availableUnknown thread crashed with X86 Thread State (32-bit):eax: 0x248b8b5b ebx: 0xbffffa34 ecx: 0x241499f5 edx: 0x00000001edi: 0xbffffa9c esi: 0x00000000 ebp: 0xbffff9f8 esp: 0xbffff9b0ss: 0x00000023 efl: 0x00010297 eip: 0x000011bb cs: 0x0000001bds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000fcr2: 0x241499f5Logical CPU: 4Error Code: 0x00000004Trap Number: 14Binary images description not availableExternal Modification Summary:Calls made by other processes targeting this process:task_for_pid: 0thread_create: 0thread_set_state: 0Calls made by this process:task_for_pid: 0thread_create: 0thread_set_state: 0Calls made by all processes on this machine:task_for_pid: 26791thread_create: 0thread_set_state: 0复制代码
解决
下载官网的mac的新版本也没有用。最后还是自己clone重新编译解决了。如下
git clone https://github.com/java-decompiler/jd-gui.git./gradlew build复制代码
之后java -jar build/libs/jd-gui-1.4.0.jar就正常了