summarylogtreecommitdiffstats
path: root/weka.sh
blob: 5cf1e738e9f5101b2a81c6e05e18f0d87763ee89 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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'

_runtime11=$(/usr/bin/archlinux-java status | grep -m1 11 | cut -d' ' -f3)

exec /usr/lib/jvm/$_runtime11/bin/java -Xms32m -Xmx2g "$@" -jar /usr/share/weka/weka.jar