Skip to content

mac m1 无法识别JDK #427

Open
Open

Description

@GithubGey

mac m1 无法识别JDK,
image

需要收到修改一下内容,才可以启动
image

Activity

  1. softsheng commented on Sep 5, 2023

    @softsheng

    我也遇到了同样的问题,请问如何解决了?

  2. bobolau commented on Dec 4, 2023

    @bobolau

    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

  3. lj3lj3 commented on Apr 16, 2024

    @lj3lj3

    也可以直接下载jar包执行

  4. Louis0704 commented on Jul 16, 2024

    @Louis0704

    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.

  5. happut commented on Aug 28, 2024

    @happut

    修改
    /Applications/JD-GUI.app/Contents/Info.plist
    里面的

    <key>JVMVersion</key>
    <string>1.8</string>
    
    

    将1.8+改为1.8

    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions