System.getProperty("user.dir") returns "/home/user" on Linux
800449May 6 2007 — edited May 7 2007Has anyone else had the error when launching a jar from Linux (just by clicking it), System.getProperty("user.dir") returns the "/home/user" (or "~") value instead of the folder that the jar is in? Essentially, it returns "user.home" instead of "user.dir".
This does not happen when I start the application from command line.
(I know its not swing, but I wasn't sure where to post it)
Is this just a simple Linux setting that isn't enabled by default? Ubuntu already made the file association after using apt-get to install Java 6.
Cheers.
-FBL