1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh progname="jalview" mainclass="jalview.bin.Jalview" basedir="/usr/share/java/$progname" # build classpath: all jars in $basedir cp=$(ls $basedir/*.jar | xargs echo | sed "s/ /:/g") # run jar "/usr/bin/java" -cp $cp $mainclass