To get the application's path, I call the following Java command:
System.getProperty("user.dir")
This works just fine if the app is launched directly. On Windows and OS X, this also works if the app is launched via a shortcut and alias respectively.
However, when the app is launched via a Linux link (in Linux Mint, made by right-clicking on the file and choosing "Make Link", then moving it somewhere else), the command returns the path of the shortcut, rather than the path of the application itself. Is there a way that I can get the true path of the app, rather than the path of the link pointing to the app?