aspose file tools*
The moose likes Applets and the fly likes How do i include cab and jar in Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How do i include cab and jar in Applet" Watch "How do i include cab and jar in Applet" New topic
Author

How do i include cab and jar in Applet

Ashish Thakur
Greenhorn

Joined: Mar 18, 2000
Posts: 22
Hi,
I need to embed certain classes for my applet in the browser,
As i understand we need to create the .cab files and .jar files for this.Each for IE and Netscape.
I have created the jar files using
jar cfm JarName.jar ManiFile.man -C ClassDir/*.class
The Applet AppletClass.class is inside this jar.
But when i call it from the Browser using the within_jar_filepath/AppletClass.class it says cannot init applet.
I have included the JarName.jar file in the archive tag of the Browser.
Can anyone hellp me at to what is that i am doing wrong or not doing at all.
Also how do i make .cab files, I am using the jdk1.2.1 kit
Thanx for ur help.
Ashish T.
James Spellman
Greenhorn

Joined: Apr 04, 2000
Posts: 1
I just ran across this yesterday. It may be what you are looking for:
<applet code="myclass.class" align="top" width="400" height="300" archive="myjar.jar">
<param name="cabbase" value="mycab.cab">
</applet>
It looks like one or the other fails silently in each browser. Hope it helps!
James Spellman
Ashish Thakur
Greenhorn

Joined: Mar 18, 2000
Posts: 22
Hi,

Cant do that, i am using the Java2 pakage so have to use pluggi ie OBJECT tag etc..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i include cab and jar in Applet