Open GithubGey opened 1 year ago
我也遇到了同样的问题,请问如何解决了?
modify file JD-GUI/Contents/MacOS/universalJavaApplicationStub.sh line 230, add remove +, so 1.8+ change to 1.8
# check for specified JVMversion in "/usr/libexec/java_home" symlinks
elif [ ! -z ${JVMVersion} ] && [ -x /usr/libexec/java_home ] && /usr/libexec/java_home -F; then
# Remove the + sign from JVMVersion
JVMVersion="${JVMVersion%+}"
source file src/osx/resources/universalJavaApplicationStub.sh
也可以直接下载jar包执行
modify file JD-GUI/Contents/MacOS/universalJavaApplicationStub.sh line 230, add remove +, so 1.8+ change to 1.8
# check for specified JVMversion in "/usr/libexec/java_home" symlinks elif [ ! -z ${JVMVersion} ] && [ -x /usr/libexec/java_home ] && /usr/libexec/java_home -F; then # Remove the + sign from JVMVersion JVMVersion="${JVMVersion%+}"
source file src/osx/resources/universalJavaApplicationStub.sh
Thanks! It works.
修改
/Applications/JD-GUI.app/Contents/Info.plist
里面的
<key>JVMVersion</key>
<string>1.8</string>
将1.8+
改为1.8
mac m1 无法识别JDK,
需要收到修改一下内容,才可以启动