Advertisement

[java] .jar packages

Started by November 15, 2000 05:27 AM
5 comments, last by Lord Chaos 24 years, 2 months ago
Another quick-''n-simple question I have a lot of .class files building my applet, and I want to put them all into one .jar archive. But how do I make the browser understand which .jar package to get in order to find the classes?
-------------------------------------------------------------LGPL 3D engine - http://www.sourceforge.net/projects/realityengine
APPLET archive="xxx.jar" code="yyy.class" width=".." height=".."
...
/APPLET


Edited by - Viking on November 15, 2000 6:38:24 AM
Advertisement
According to my HTML reference, ARCHIVE is Netscape-specific. Is it really generally accepted by all browsers?
-------------------------------------------------------------LGPL 3D engine - http://www.sourceforge.net/projects/realityengine
hmmm.. don''t know. I took the example from "Java Examples in a Nushell".
Yes, I beleive archive is NS specific. You would need a CAB file as well and another option to make it work under both, or have the classfiles in a directory and only use the jar file for netscape.
I''ve never had a problem with IE understanding archive= and opening jar files.
Advertisement
Jim is right. IE can easily understand the ARCHIVE keyword. I have done it several times and used it from IE.

Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games

This topic is closed to new replies.

Advertisement