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

后端 未结 8 1645
天命终不由人
天命终不由人 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:40

    i have experienced the same problem, and after reading this post i have double checked the JAVA_HOME definition in .bash_profile. It is actually:

    export JAVA_HOME=$(which java)
    

    that, exactly as Anony-Mousse is explaining, is the executable. Changing it to:

    export=/Library/Java/Home
    

    fixes the problem, tho is still interesting to understand why it's valued in that way in the profile file.

提交回复
热议问题