Re: embed .jar files
Pasquale wrote:
I have never embedded java files into html pages, and I'm attempting
this for the first time.
Where did you get these file? Did they come with
instructions? Were Javadocs provided for them?
What is the application?
I have been given ..
By who?
...jar and .jad files to embed.
A quick search on jad file indicates to me that it is more for
packaging applications for mobile phones. Is that you market?
...I've been searching and
all I have found that seems to apply to my situation is that the archive
attribute is what I should use for the .jar file?
Yes.
...What about the code
and codebase attributes?
What about them? Consult that document I linked
and ask further (and smarter) questions if need be.
...I don't have any .class files. Should I have
been provided with one or more of those?
They are most likely in the .jar, which a quick search
should reveal as being a form of Zip archive, but for Java.
It is possible to rename .jar files as .zip and late model
windows will let you browse into them (but they should
be changed back to .jar extension before deployment).
You need to reference the class that is the (or an)
applet, in the applet element of the web page.
That is where the Javadocs mentioned above, come
in handy.
..Do I use the .jad files instead of .class?
No. (Unless the target is J2ME on mobile phones)
My host's instructions are basic:
1. Upload your Java servlets (classes) into your /WEB-INF/classes/ folder.
There are no servlets (directly) involved with applet
deployment. Applets can be deployed in pure HTML,
on a server that has no servlet ability.
Applet deployment is a specialist area that is very
much not for beginners, even most Java pros would
not be able to deploy an applet reliably to an internet
based audience. I suggest you hire a consultant.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200706/1