I reopen this bug since I have provided additional information in bug
#73401, which is a duplicate of this bug. Please read it.

Easily said, when I have ~/app/app.jar and launch it, currently the nautilus do:
$ java -jar ~/app/app.jar
(cwd is undefined, mostly ~)
and should do:
$ cd ~/app
$ java -jar app.jar        # or 'java -jar ~/app/app.jar', this doesn't matter
(cwd set to ~/app)

This is because java applications have NO WAY of determining their run
location. It's the limitation of the platform. Therefore if they want to
use additional files addressed by relative paths, they must be run with
cwd set correctly to program directory. On Windows this issue doesn't
exist, clearly their launcher implementation always change cwd
appropriately. Ubuntu should do this too.

I'm Java developer, this issue makes me a lot of troubles for linux
users.

** Changed in: nautilus (Ubuntu)
       Status: Invalid => New

-- 
jvm receives wrong path
https://bugs.launchpad.net/bugs/234777
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to