A
Antti Järvinen
Dear Sirs,
there seems to be some kind of magic regarding naming of jar files
when loading an applet via web browser. Lets say I have foo.jar
and reference it via html this way
<applet code="Foo.class" archive="foo.jar" width="200" height="50"></applet>
everything works jolly well.
If I rename "foo.jar" to plain "foo" and change my html to say
<applet code="Foo.class" archive="foo" width="200" height="50"></applet>
then my web browser tells me "Applet Foo notinited". This happens with java
1.4.2 having mozilla or netscape around. Oddly enough, in mozilla, if I
re-load the page, then the applet does get started. In netscape this does not
help. I have here made sure that mime-type of file "foo" is right.
Is there any other work-around than naming the jar files with .jar
extension?
I'm having a system where the URLs pointing to various stuff, including .jar
files, do not have anything to do with original filenames ; I might be
able to change that but is there any other way to make java to recognize
jar files as jar files regardless of URL ending?
there seems to be some kind of magic regarding naming of jar files
when loading an applet via web browser. Lets say I have foo.jar
and reference it via html this way
<applet code="Foo.class" archive="foo.jar" width="200" height="50"></applet>
everything works jolly well.
If I rename "foo.jar" to plain "foo" and change my html to say
<applet code="Foo.class" archive="foo" width="200" height="50"></applet>
then my web browser tells me "Applet Foo notinited". This happens with java
1.4.2 having mozilla or netscape around. Oddly enough, in mozilla, if I
re-load the page, then the applet does get started. In netscape this does not
help. I have here made sure that mime-type of file "foo" is right.
Is there any other work-around than naming the jar files with .jar
extension?
I'm having a system where the URLs pointing to various stuff, including .jar
files, do not have anything to do with original filenames ; I might be
able to change that but is there any other way to make java to recognize
jar files as jar files regardless of URL ending?