File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Calling an applet in jar over Http Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Calling an applet in jar over Http" Watch "Calling an applet in jar over Http" New topic
Author

Calling an applet in jar over Http

Amit Rosner
Greenhorn

Joined: Dec 03, 2001
Posts: 22
Hi!
How can I call to an applet that resides in a jar file
(containing all of the necessary classes) from a servlet
over Http?
For some reason, I succeed only if I unzip the jar and call
directly to the MyApplet.class file from the HTML.
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Use
ARCHIVE="MyAppletJar.jar"
in your applet tag.

Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Amit Rosner
Greenhorn

Joined: Dec 03, 2001
Posts: 22
I've tried that...:-)))
I wouldn't have posted that message if that worked...
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
I guess in the jar file's manifest file, you have to tell the main class. I am not sure about that. Look in java tutorials about creating a valid jar file for applets. all the best.
 
 
subject: Calling an applet in jar over Http
 
Threads others viewed
Accessing Jar file
Writing Image from Applet
Launch an application via an Applet
embed an applet into jpanel
Enabling a security manager for a single jar
developer file tools