Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bminstall script for mac #50

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 6 additions & 22 deletions bin/bminstall.sh
Expand Up @@ -78,29 +78,13 @@ if [ $JAVA_VERSION -le 8 ]; then
echo "please set JAVA_HOME"
exit
fi
# on Linux we need to add the tools jar to the path
# this is not currently needed on a Mac
OS=`uname`
if [ ${OS} != "Darwin" ]; then
if [ -r ${JAVA_HOME}/lib/tools.jar ]; then
TOOLS_JAR=${JAVA_HOME}/lib/tools.jar
CP=${BYTEMAN_INSTALL_JAR}:${TOOLS_JAR}
else
echo "Cannot locate tools jar"
CP=${BYTEMAN_INSTALL_JAR}
fi
# on Linux and Mac we need to add the tools jar to the path
if [ -r ${JAVA_HOME}/lib/tools.jar ]; then
TOOLS_JAR=${JAVA_HOME}/lib/tools.jar
CP=${BYTEMAN_INSTALL_JAR}:${TOOLS_JAR}
else
if [ $JAVA_VERSION -gt 6 ]; then
if [ -r ${JAVA_HOME}/Classes/classes.jar ]; then
TOOLS_JAR=${JAVA_HOME}/Classes/classes.jar
CP=${BYTEMAN_INSTALL_JAR}:${TOOLS_JAR}
else
echo "Cannot locate tools jar"
CP=${BYTEMAN_INSTALL_JAR}
fi
else
CP=${BYTEMAN_INSTALL_JAR}
fi
echo "Cannot locate tools jar"
CP=${BYTEMAN_INSTALL_JAR}
fi
else
CP=${BYTEMAN_INSTALL_JAR}
Expand Down