When you click a JAR the current directoy should be that of the JAR, not your home

Bug #256670 reported by Renato Silva on 2008-08-10
4
Affects Status Importance Assigned to Milestone
Unity
Invalid
Undecided
Unassigned
nautilus (Ubuntu)
Undecided
Unassigned
openjdk-7 (Ubuntu)
Undecided
Unassigned
unity (Ubuntu)
Undecided
Unassigned

Bug Description

When I click on a a jar (open it with Java) which reads some external file, it tries to find it under my home instead of the folder where the jar is located (Windows behavior). However, if I run $java -jar app.jar it works.

That is: when you click the jar, you'd expect the current directory being that in front of your face, not anywhere else, like your home.

hugocanalli (hugocanalli) wrote :

Yes.

I've the same problem.

description: updated

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for having taken the time to report this bug to help make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

 subscribe
 status incomplete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkk/OwoACgkQZaGzTLr7X3WakwCcDsW8Y9vWXlEPGR2wIem9JJaG
gnEAnj8AyZ6SVUbGu61qFk8mcn/ILakX
=OhXG
-----END PGP SIGNATURE-----

I'll try it

________________________________
From: Patrick Kilgore <email address hidden>
To: <email address hidden>
Sent: Wednesday, December 10, 2008 1:44:22 AM
Subject: [Bug 256670]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for having taken the time to report this bug to help make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

subscribe
status incomplete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkk/OwoACgkQZaGzTLr7X3WakwCcDsW8Y9vWXlEPGR2wIem9JJaG
gnEAnj8AyZ6SVUbGu61qFk8mcn/ILakX
=OhXG
-----END PGP SIGNATURE-----

** Changed in: ubuntu
       Status: New => Incomplete

--
When you click a JAR the current directoy should be that of the JAR, not your home
https://bugs.launchpad.net/bugs/256670
You received this bug notification because you are a direct subscriber
of the bug.

Renato Silva (renatosilva) wrote :

I've verified the issue still happens. When you click a JAR the current folder is your home, and the program has no permission to create a file on it. In console the current dir is wherever you are. I think current dir must be that of the JAR, not anywhere else.

________________________________
From: Patrick Kilgore <email address hidden>
To: <email address hidden>
Sent: Wednesday, December 10, 2008 1:44:22 AM
Subject: [Bug 256670]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for having taken the time to report this bug to help make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering is this still an issue
for you? Can you try with latest Ubuntu release? Thanks in advance.

subscribe
status incomplete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkk/OwoACgkQZaGzTLr7X3WakwCcDsW8Y9vWXlEPGR2wIem9JJaG
gnEAnj8AyZ6SVUbGu61qFk8mcn/ILakX
=OhXG
-----END PGP SIGNATURE-----

** Changed in: ubuntu
       Status: New => Incomplete

--
When you click a JAR the current directoy should be that of the JAR, not your home
https://bugs.launchpad.net/bugs/256670
You received this bug notification because you are a direct subscriber
of the bug.

Which Java runtime do you have installed?

Sun Java JRE 6

________________________________
From: Patrick Kilgore <email address hidden>
To: <email address hidden>
Sent: Sunday, December 14, 2008 2:17:19 AM
Subject: [Bug 256670] Re: When you click a JAR the current directoy should be that of the JAR, not your home

Which Java runtime do you have installed?

--
When you click a JAR the current directoy should be that of the JAR, not your home
https://bugs.launchpad.net/bugs/256670
You received this bug notification because you are a direct subscriber
of the bug.

Ok, I'll pass it along to the sun-java folks to handle. I'm not an expert in this area, but you may have to report this bug to sun itself to fix, since I'm not sure how much control we have over Java's source.

Thanks for your report.

Changed in sun-java6:
status: Incomplete → Confirmed
importance: Undecided → Low
importance: Low → Wishlist
Renato Silva (renatosilva) wrote :

In console the same JRE is running. The JRE just asks for the current directory. The terminal answer seems ok, but Nautilus always says "home".

________________________________
From: Patrick Kilgore <email address hidden>
To: <email address hidden>
Sent: Tuesday, December 23, 2008 12:32:25 AM
Subject: [Bug 256670] Re: When you click a JAR the current directoy should be that of the JAR, not your home

Ok, I'll pass it along to the sun-java folks to handle. I'm not an
expert in this area, but you may have to report this bug to sun itself
to fix, since I'm not sure how much control we have over Java's source.

Thanks for your report.

** Changed in: sun-java6 (Ubuntu)
Sourcepackagename: None => sun-java6

** Changed in: sun-java6 (Ubuntu)
       Status: Incomplete => Confirmed

** Changed in: sun-java6 (Ubuntu)
   Importance: Undecided => Low

** Changed in: sun-java6 (Ubuntu)
   Importance: Low => Wishlist

--
When you click a JAR the current directoy should be that of the JAR, not your home
https://bugs.launchpad.net/bugs/256670
You received this bug notification because you are a direct subscriber
of the bug.

Renato Silva (renatosilva) wrote :

Bug still reproducible in Karmic! It only works in console mode.

Using Sun Java 1.6.0_16-b01, but I think it's a Nautilus issue.

Renato Silva (renatosilva) wrote :

Still reproducible in Ubuntu 14.04!

no longer affects: sun-java6 (Ubuntu)
affects: nautilus → unity
Changed in unity:
status: New → Invalid
Changed in unity (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers