Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How do i include cab and jar in Applet

 
Greenhorn
Posts: 22
  • 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.
 
Greenhorn
Posts: 1
  • 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
  • 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..
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic