在升級了mac操做系統到Sierra版本以後,以前的jd-gui就閃退了,本文就講述一下如何解決這個問題。java
使用的是jdk8git
Date/Time: 2016-09-22 11:28:18.416 +0700 OS Version: Mac OS X 10.12 (16A323) Report Version: 12 Anonymous UUID: 1611245A-06D9-C16E-B5A3-A2BCF51CC12C Sleep/Wake UUID: B23BDF91-F082-46BA-9EB3-99D558FC4472 Time Awake Since Boot: 39000 seconds Time Since Wake: 10000 seconds System Integrity Protection: enabled Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000241499f5 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0] Backtrace not available Unknown thread crashed with X86 Thread State (32-bit): eax: 0x248b8b5b ebx: 0xbffffa34 ecx: 0x241499f5 edx: 0x00000001 edi: 0xbffffa9c esi: 0x00000000 ebp: 0xbffff9f8 esp: 0xbffff9b0 ss: 0x00000023 efl: 0x00010297 eip: 0x000011bb cs: 0x0000001b ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f cr2: 0x241499f5 Logical CPU: 4 Error Code: 0x00000004 Trap Number: 14 Binary images description not available External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 26791 thread_create: 0 thread_set_state: 0
下載官網的mac的新版本也沒有用。最後仍是本身clone從新編譯解決了。以下github
git clone https://github.com/java-decompiler/jd-gui.git ./gradlew build
以後java -jar build/libs/jd-gui-1.4.0.jar就正常了gradle