[Bug 469332] New: Running a ".jar" file seems to do nothing
https://bugzilla.novell.com/show_bug.cgi?id=469332 Summary: Running a ".jar" file seems to do nothing Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: noelamac@gmail.com QAContact: qa@suse.de Found By: --- openSUSE 11.1 (32 bits) installed on VirtualBox, Gnome desktop, Sun's Java 1.6 When I try to run a ".jar" file, I get a small window terminal and then it closes itself. The Java application does not open. Running the same ".jar" file in gnome-terminal ("java -jar app.jar") it just runs fine. Gnome's jar file association calls to "/usr/bin/jarwrapper" to open this kind of files, which fails. Changing the path to "/usr/bin/java -jar" the program can be started. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469332
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c1
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=469332
User noelamac@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c2
--- Comment #2 from Camaleon --
Seems to be a problem in a desktop files. The run command is defined as /usr/bin/jarwrapper %u, but java -jar cannot work with URL, only with PATH.
As a workaround, change the command to '/usr/bin/jarwrapper %s' in nautilus.
O.k. Your workaround also seems to work here. Just one question, is there any way to make the workaround available for all users in the system? Any file I can edit to apply it "globally"? :-? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469332
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c3
--- Comment #3 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=469332
User noelamac@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c4
--- Comment #4 from Camaleon --
--- /usr/share/applications/jarwrapper.desktop 2008-12-03 11:58:33.000000000 +0100 +++ jarwrapper.desktop 2009-01-29 15:25:45.965074080 +0100 @@ -4,8 +4,8 @@ Name=Execute Jar File GenericName=Execute Jar File Comment=Start Java Jar archives with a mouse click -MimeType=application/x-jar; -Exec=/usr/bin/jarwrapper %u +MimeType=application/x-java-archive;application/x-jar; +Exec=/usr/bin/jarwrapper %f Icon=java.png Terminal=true NoDisplay=true
Mandatory is the Exec line. The %u means - use URL, the %f (%s was a type :)) means - use a file path. The MimeType is for proper mime-type handling, because the x-jar is just alias and some desktops (for example KDE) do not use it.
Nice! Edited, tested and works well for another user. Thanks! :-) Just 2 additional notes, for your review: a) Argument "%s" also works :-P b) When using "/usr/bin/jarwrapper" I get a window terminal stating "executing java -jar /home../../file.jar" and keeps minimized after I close the program. But using "/usr/bin/java" does not launch that terminal. Which one is the right behavior? To be sincere, I don't like so much that window O:-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469332
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c5
--- Comment #5 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=469332
User noelamac@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c6
--- Comment #6 from Camaleon --
Type Terminal=False and it will be gone.
Done! -> tested... -> it works! So, thanks again :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=469332
User mvyskocil@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=469332#c7
Michal Vyskocil
participants (1)
-
bugzilla_noreply@novell.com