Use picard-tools script rather than full path to Picard jar #78
Description
(I commented also here about this.)
This is relevant to the Picard sub-tools.
I noticed that at least when intalling via apt-get on Ubuntu, you get a picard-tools
script in /usr/bin
, which is executable from everywhere, that basically replaces the java -jar [...path...]/picard.jar
part.
Calling that script instead of using java
and the full path to the jar would be more portable as it is not specific to a given path for the jar. It should also be easy to create a custom such script in one's /usr/bin/
or other folders set in one's PATH
, if installing in a custom location.
(For java options, I checked in the picard-tools
script that it sends the JAVA_OPTIONS
env variable to java, in case that is needed, for setting the memory usage and the like.)