Unable to locate an executable at “/usr/bin/java/bin/java” (-1)

后端 未结 8 1733
天命终不由人
天命终不由人 2020-12-13 11:53

I am having a pathetic issue with Java in my mac osx 10.7.3 . Previously I installed it and it was working fine. After some changes in the .bash_profile and .profile file in

8条回答
  •  抹茶落季
    2020-12-13 12:42

    For me, the problem occurs when I've downloaded macOS Compressed Archive which underlying directory contains

    jdk-11.0.8.jdk
    - Contents
      - Home
        - bin
        - ...
      - MacOS
      - _CodeSignature
    

    So, to solve the problem, JAVA_HOME should be pointed directly to /Path-to-JDK/Contents/Home.

提交回复
热议问题