I've my javafx jar running inside a .app. Now if I execute
System.getProperty("user.dir")
I get location of user home i.e. /Users/DevAccount/ where DevAccount is system user name instead of location of .app file or .jar file.
How do I find where the .app is actually running from at runtime?
Alternatively please suggest how to set java.library.path to a folder within a .app bundle.
Note: If I run jar outside .app I'm able to set java.library.path as desired but when .app is run, user.dir system property does not return desired value.