참조: https://github.com/java-decompiler/jd-gui/issues/196

 

JD-GUI crash on start up w/ Mac High Sierra? · Issue #196 · java-decompiler/jd-gui

Hey. I've been using JD-GUI for some time now and I just recently updated my computer to High Sierra and now it crashes whenever I start it. Can anyone help, please?

github.com

 

아래 2가지 방법중 하나 사용

See issue #187 for the fix. This works on Java 9 and 10.
I fixed my Mac launcher by going into the JD-GUI.app/Contents/MacOS folder and updating the Java call in the .sh file as follows (the two --add-opens lines):
exec "$JAVACMD"
-cp "${JVMClassPath}"
-Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}"
-Xdock:name="${CFBundleName}"
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED
${JVMOptions:+$JVMOptions }
${JVMDefaultOptions:+$JVMDefaultOptions }
${JVMMainClass}
${JVMArguments:+ $JVMArguments}

 

OK so I solved this by specifying the version to run inside of the Info.plist file.
To access that right click on the OSx JD-GUI icon and go to "Show Package Contents" then navigate into the "Contents" directory and open "Info.plist" inside of a text editor.

You want to look for the line that looks like:

<key>JVMVersion</key> <string>1.7+</string>

I believe the issue I was experiencing was caused by having Java 10 installed so the real issue may be that High Sierra is OK but Java 10 causes problems. To fix that I specified the Java 7 runtime in the Info.plist file by changing the above line to the following:

<key>JVMVersion</key> <string>1.7</string>

This allows me to run the JD-Gui from the osx .app wrapper as I did before my update.

/Applications/Eclipse.app/Contents/Info.plist 파일 수정

<array>

<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,

or add a VM found via $/usr/libexec/java_home -V

<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>

-->

<string>-keyring</string>

                         <string>~/.eclipse_keyring</string>

<!-- Java 설치 경로를 추가 -->

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java</string>

<!-- 추가 -->

</array>



출처: https://sshbug.tistory.com/805 [SsonG's]

'develop > Mac OS' 카테고리의 다른 글

JD-GUI with java 8+  (0) 2021.06.07
터미널에 색상 넣기 및 프롬프트 변경  (0) 2017.06.20
Mac에서 숨김파일/폴더 표시  (0) 2017.03.23
mac os에서 wget 설치  (0) 2014.03.27

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\] \W\[\033[m\]\$ "

export CLICOLOR=1

export LSCOLORS=ExFxBxDxCxegedabagacad

'develop > Mac OS' 카테고리의 다른 글

JD-GUI with java 8+  (0) 2021.06.07
Big Sur 업데이트 이후 Eclipse실행 오류 해결  (0) 2021.02.18
Mac에서 숨김파일/폴더 표시  (0) 2017.03.23
mac os에서 wget 설치  (0) 2014.03.27

출처: http://angrygoguma.tistory.com/55


터미널에서 다음을 입력


$ defaults write com.apple.finder AppleShowAllFiles -bool true

$ killall Finder


다시 숨기고 싶을때는 default의 설정값을 false로 바꾸고 같은 작업을 해준다.


'develop > Mac OS' 카테고리의 다른 글

JD-GUI with java 8+  (0) 2021.06.07
Big Sur 업데이트 이후 Eclipse실행 오류 해결  (0) 2021.02.18
터미널에 색상 넣기 및 프롬프트 변경  (0) 2017.06.20
mac os에서 wget 설치  (0) 2014.03.27

출처: http://androidkr.blogspot.kr/2012/03/mac-mac-os-x-lion-wget.html


Mac Ports 설치 후

  • sudo port selfupdate
  • sudo port install wget


+ Recent posts