A
Andrew Thompson
Is there a correct 'mime-type' to identify
a java jar file?
Somebody using Mozilla commented they
got the literal bytecodes in their browser,
when they followed a likn to a jar at the
on-line compiler.
I began to investigate mime-types,
because you need to get your server
to identify .jnlp files using a mime-type..
After trawling around Sun and getting
nowhere (I could gind mime-type for
applet and jnlp only), I started
experimenting.
Using the one for applet does not work,
you just get a blank screen then referred
to Sun (Java was already installed). So
hen I got silly and just adapted my own..
application/x-java-application
This results in Mozilla asking you what
you want to use to open the jar file.
My question is, are there any really
compelling reasons _not_ to define
this mime type? Have I missed
something obvious?
a java jar file?
Somebody using Mozilla commented they
got the literal bytecodes in their browser,
when they followed a likn to a jar at the
on-line compiler.
I began to investigate mime-types,
because you need to get your server
to identify .jnlp files using a mime-type..
After trawling around Sun and getting
nowhere (I could gind mime-type for
applet and jnlp only), I started
experimenting.
Using the one for applet does not work,
you just get a blank screen then referred
to Sun (Java was already installed). So
hen I got silly and just adapted my own..
application/x-java-application
This results in Mozilla asking you what
you want to use to open the jar file.
My question is, are there any really
compelling reasons _not_ to define
this mime type? Have I missed
something obvious?