I want to add a program to my $PATH, but its code is split into various files that it imports at run-time from a lib/ in its root directory.
projectRootDirectory
├ programBinary
└ lib
├ someLibrary
└ someLibrary2
How do I add such a program to my $PATH without it complaining about missing dependencies?
I'd normally get the binary into /usr/local/bin by
copying
cp /path/to/programBinary /usr/local/binor symlinking
cd /usr/local/bin ln -s /path/to/programBinary programBinary
but both make it fail to find its dependencies.
I can't move the whole directory into /usr/local/bin because some of the required files are executables too, which I don't want cluttering my $PATH.
How should I be doing this?
Unable to access jarfile: /usr/local/bin/savilerow.jar" when symlinked in/usr/local/bin.)