Skip to content

Commit

Permalink
eliminating requirement on JAVA_HOME being set
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2363 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed Oct 22, 2006
1 parent bd4c92d commit a2a5c9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/jruby
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ if [ -z "$JRUBY_OPTS" ] ; then
fi fi


if [ -z "$JAVA_HOME" ] ; then if [ -z "$JAVA_HOME" ] ; then
echo You must set JAVA_HOME to point at your Java Development Kit installation JAVA_CMD='java'
exit 1
else else
if $cygwin; then if $cygwin; then
JAVA_HOME=`cygpath -u "$JAVA_HOME"` JAVA_HOME=`cygpath -u "$JAVA_HOME"`
fi fi
JAVA_CMD="$JAVA_HOME/bin/java"
fi fi


JRUBY_SHELL=/bin/sh JRUBY_SHELL=/bin/sh
Expand Down Expand Up @@ -126,7 +126,7 @@ if [ "$1" = "EN_US" ]; then
shift shift
fi fi


"$JAVA_HOME/bin/java" $DEBUG -Xmx256m -ea -classpath "$CP" \ $JAVA_CMD $DEBUG -Xmx256m -ea -classpath "$CP" \
"-Djruby.base=$JRUBY_BASE" \ "-Djruby.base=$JRUBY_BASE" \
"-Djruby.home=$JRUBY_HOME" \ "-Djruby.home=$JRUBY_HOME" \
"-Djruby.lib=$JRUBY_BASE/lib" \ "-Djruby.lib=$JRUBY_BASE/lib" \
Expand Down

0 comments on commit a2a5c9e

Please sign in to comment.