Skip to content

Commit

Permalink
Merge pull request #282 from owlcollab/issue-256
Browse files Browse the repository at this point in the history
Use -jar option to run from embedded jar. Possible fix for #256.
  • Loading branch information
balhoff authored Apr 24, 2019
2 parents 3c7f746 + 9faaa72 commit 3c7852e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OWLTools-Runner/bin/owltools.script
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ fi
JAVA=`which java`

# full command
CMD="$JAVA -Xms2G $JVM_OPTIONS -DentityExpansionLimit=4086000 -Djava.awt.headless=true -classpath $PATH_TO_SELF owltools.cli.CommandLineInterface"
CMD="$JAVA -Xms2G $JVM_OPTIONS -DentityExpansionLimit=4086000 -Djava.awt.headless=true -jar $PATH_TO_SELF"

if [ $DEBUG ]
then
echo $CMD "$@"
fi

# Run
exec "$JAVA" -Xms2G $JVM_OPTIONS -DentityExpansionLimit=4086000 -Djava.awt.headless=true -classpath $PATH_TO_SELF owltools.cli.CommandLineInterface "$@"
exec "$JAVA" -Xms2G $JVM_OPTIONS -DentityExpansionLimit=4086000 -Djava.awt.headless=true -jar $PATH_TO_SELF "$@"

exit 1

0 comments on commit 3c7852e

Please sign in to comment.