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

来源:互联网 发布:淘宝双11红包怎么领 编辑:程序博客网 时间:2024/05/29 10:54

Most certainly, export JAVA_HOME=/usr/bin/java is the culprit. This env var should point to the JDK or JRE installation directory. Googling shows that the best option for MacOS X seems to be export JAVA_HOME=/Library/Java/Home.

shareimprove this answer

http://stackoverflow.com/questions/10873437/unable-to-locate-an-executable-at-usr-bin-java-bin-java-1

0 0
原创粉丝点击