summarylogtreecommitdiffstats
path: root/weka.sh
diff options
context:
space:
mode:
Diffstat (limited to 'weka.sh')
-rw-r--r--weka.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/weka.sh b/weka.sh
index d18250d9406b..8ff3de331c60 100644
--- a/weka.sh
+++ b/weka.sh
@@ -1,16 +1,9 @@
-#! /bin/sh
+#!/usr/bin/sh
# Note: the '-Xmx2g' flag is used to set the maximum memory that the java
# program is allowed. When working with large data sets, this number may need
# to be increased based on how much memory you wish to allow weka to have.
# Specifying command line arguments will override the defaults shown here.
# Example: '-Xmx4g'
-DEFAULT_ARGS='-Xms32m -Xmx2g'
-if [ $# -gt 0 ]; then
- ARGS="$@"
-else
- ARGS="$DEFAULT_ARGS"
-fi
-
-java $ARGS -jar /usr/share/java/weka/weka.jar
+exec /usr/bin/java -Xms32m -Xmx2g "$@" -jar /usr/share/weka/weka.jar