Skip to content

Commit

Permalink
Add quotes around $JAVA
Browse files Browse the repository at this point in the history
Allows script to run when JAVA_HOME has spaces in it (for instance "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home" which is common on OSX). Without this change, the error reported by the script is "./scripts/RapidMinerGUI: line 170: /Library/Internet: No such file or directory"
  • Loading branch information
motin committed May 13, 2014
1 parent d5b1321 commit 9e67c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/RapidMinerGUI
Expand Up @@ -167,7 +167,7 @@ do
if [ $NUMBER_OF_CORES -gt 1 ]
then
echo Starting in multi-core mode
$JAVA $ADDITIONAL_OPTIONS \
"$JAVA" $ADDITIONAL_OPTIONS \
-Xmx${MAX_JAVA_MEMORY}m \
-XX:MaxPermSize=128m \
-cp ${CLASSPATH} \
Expand All @@ -177,7 +177,7 @@ do
com.rapid_i.Launcher "$@"
else
echo Starting in single-core mode
$JAVA \
"$JAVA" \
-Xmx${MAX_JAVA_MEMORY}m \
-XX:MaxPermSize=128m\
-cp ${CLASSPATH} \
Expand Down

0 comments on commit 9e67c01

Please sign in to comment.