** Description changed:
This might not be problems with exactly sun-java5 package, but it's a
problem with integration of this package into the desktop.
If you are launching JAR file via right mouse click-> Open with "Sun
Java 5.0 Runtime", the current working directory is not always set
correctly to current dir. Instead, most of the time, CWD is set to
user's home directory. (Not all the time, but I haven't found out on
what does it depend.)
Anyway, setting CWD to home directory and not to directory with JAR file
is a really bad idea, because a lot of Java programs are using relative
paths to access their data, and this way, these programs stop working.
Example:
we have an application in /home/user/myapp/app.jar
1. if we ran it manually:
$ cd /home/user/myapp
$ java -jar app.jar
everything is ok
2. if we click right mouse button in nautilus on the app.jar file and choose
'Open with "Sun Java 5.0 Runtime"', we would expect same behaviour as in case
1. But, the real behaviour is something like this:
$ java -jar /home/user/myapp/app.jar
Which might be (and IS) causing problems to java programs relying on relative
paths.
+
+ A remark: I have not achieved this wrong behaviour on windows. There it
+ seems to set current working directory correctly. This is a problem of
+ Java integration into Ubuntu only.
** Also affects: sun-java6 (Ubuntu)
Importance: Undecided
Status: New
--
current working directory not set correctly when launching JAR file
https://bugs.launchpad.net/bugs/73401
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