I usually install software by compiling it in ~/local/, and then create a symbolic link to them in ~/bin/.
ganttproject.sh tries to find its related files in the directory where the executable is ($0). In my case, it searches in ~/bin/, and finds nothing.
Use readlink untill the script finds the actual script.
See attached patch.