I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0839b46c authored by zzz's avatar zzz
Browse files

i2prouter: Set JAVA_HOME correctly on Mac OS X 10.5 and later (ticket #1783)

parent cdafab27
No related branches found
No related tags found
No related merge requests found
......@@ -488,11 +488,19 @@ else
esac
fi
# OSX always places Java in the same location so we can reliably set JAVA_HOME
# Through Java 6, OSX always places Java in the same location so we can reliably set JAVA_HOME
# As of OSX 10.5 / Java 7, call /usr/libexec/java_home to find it
# https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ "$DIST_OS" = "macosx" ]
then
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME=`/usr/libexec/java_home`
fi
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="/Library/Java/Home"
fi
export JAVA_HOME
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment