I have a command line app and I'd like for the working directory to be whatever location the user is executing the launcher from. Example:
If I execute the command "myLauncher" from the shell and my current directory is "/home/jls" then System.getProperty("user.dir") should return "/home/jls"
How can this be accomplished with BR? I don't mind specifying absolute paths to all my jars -- I just need to make sure the working directory is set to wherever the user is.
Please sign in to leave a comment.