I have a script placed in /opt/MyDir/myscript.sh which calls
java, setting its directory as the classpath:
scriptdir=`dirname $0` java -mx3g -cp "$scriptdir/*" MyApp.jar
I have created a link to this script in
/usr/local/bin/myscript but if I run it, the classpath is messed up. Could anyone suggest me a workaround? How to deal in such situations? Thanks.