From 6f3b5bdeb64c38134e675787f83d44c78aa281af Mon Sep 17 00:00:00 2001 From: Glaucio Melo Date: Tue, 29 Sep 2015 15:57:41 -0300 Subject: [PATCH] JAVA_HOME fix Putting the right JAVA_HOME correct atribution - Mac OS support --- artemis-distribution/src/main/resources/bin/artemis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-distribution/src/main/resources/bin/artemis b/artemis-distribution/src/main/resources/bin/artemis index 296fb298db..96af7afa6c 100755 --- a/artemis-distribution/src/main/resources/bin/artemis +++ b/artemis-distribution/src/main/resources/bin/artemis @@ -58,7 +58,7 @@ case "`uname`" in ;; Darwin*) darwin=true if [ -z "$JAVA_HOME" ] ; then - JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home + JAVA_HOME=$(/usr/libexec/java_home) fi ;; esac