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 03:45:48 -0700 (MST)
  • Message-id: <20061031104548.48A7525C887@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=210967





------- Comment #3 from dbornkessel@xxxxxxxxxx 2006-10-31 03:45 MST -------
Created an attachment (id=103150)
--> (https://bugzilla.novell.com/attachment.cgi?id=103150&action=view)
test case

Hi Pavel.
Thanks for the insights on how Windows and MacOS X are treating those files --
I honestly did not know that ... years of linux-only computers have limited my
perspective sometimes ;)
I think you are wrong in that most jars are executable jars with a manifest.
Most jars are used as libraries with a lot of *.class files that are used from
other programs. You are right however, that a lot of jars the user downloads
can contain manifests.
How about writing some wrapper application? It would for example be easy to
distinguish between manifest-jars and jars without a manifest, as java exits
with an error if no jar was found. If that is the case, an archive manager
could be opened.
With *.class files I see difficulties in setting the classpath correctly.
Setting it to '-cp .' would only work, if the java file is not in a package.
Could you try what happens on Windows / Mac when clicking the file
HelloWorld.class in test/test2/test3 (using the attachement).
Regards,
Daniel


--
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