• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i include cab and jar in Applet

 
Ashish Thakur
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Cant do that, i am using the Java2 pakage so have to use pluggi ie OBJECT tag etc..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic