Skip to content
This repository
Browse code

Merge pull request #23 from rhwood/master

Use non-default JVM
  • Loading branch information...
commit 9f4894aaeae8c09078400346b27d0e6d7e80dbef 2 parents 86915a6 + df2f066
Tom Robinson authored May 17, 2011

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  bin/narwhal
5  bin/narwhal
@@ -26,6 +26,11 @@ if [ -f "narwhal.local.conf" ]; then
26 26
     source "narwhal.local.conf"
27 27
 fi
28 28
 
  29
+# if JAVA_HOME is set, prepend JAVA_HOME/bin to PATH so correct JVM is used
  30
+if [ -d "$JAVA_HOME" ]; then
  31
+    export PATH=$JAVA_HOME/bin:$PATH
  32
+fi
  33
+
29 34
 if [ -n "$NARWHAL_DEBUG" ]; then
30 35
     export NARWHAL_DEBUG
31 36
 fi

0 notes on commit 9f4894a

Please sign in to comment.
Something went wrong with that request. Please try again.