Mailinglist Archive: opensuse-bugs (8956 mails)

< Previous Next >
[Bug 210967] Java files have no default application to run with.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 31 Oct 2006 05:33:31 -0700 (MST)
  • Message-id: <20061031123331.54E46EBC@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=210967





------- Comment #4 from pnemec@xxxxxxxxxx 2006-10-31 05:33 MST -------
I know what you speaking about, because i also use linux lot and forgetting to
care about others OS. But i am communicating with people with Mac OS and
Windows now so i see differences in behaviour.

Funny thing about Mac OS X and Windows is, that they do not care. It is jar or
*.class so run it. If it do not work, it will throw message "Program cannot be
run" And that is, no care about wrapping, detecting if it is packed program or
just package. In my opinion, it work. Same with setting -cp AFAIK, running
without -cp means that -cp is set to "." which is sufficient.

But wrapper will be probably needed to show warning message, in case program
failed to start. I am not sure if it is right choosing running/unpacking in
script. Too much things could go wrong. Which archive manager is right? In KDE
in Gnome....in others WM. Detecting running WM .. and so on. Others thing is
that you need to call "jar tf .jar" which could take some time.

So my propose is KISS. If java is not installed use archive manager as default.
In case java is installed, use "java -jar" for jar files and "java" for *.class

I will report exact message from your test cases tomorrow, i do not have enough
resources just now ;)


--
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, or are watching someone who is.

< Previous Next >
References