Welcome to WebmasterWorld Guest from 107.22.126.144

Forum Moderators: incrediBILL

Message Too Old, No Replies

Embedding a java applet

all I have is a .jar file, don't know how to embed it

     
1:38 am on May 15, 2010 (gmt 0)

Junior Member

10+ Year Member

joined:May 1, 2005
posts:108
votes: 0


Hey all,

I've come across a java applet which I want embed into a webpage, but there was no demo and no instructions for embedding it. It consists of a single jar file (named Captor.jar), and no class file. I've never dealt with just a jar file before, and I can't get it working. I've tried many different things using this kind of HTML:

<applet code=Captor.jar name=Captor archive=Captor.jar width=300 height=300>
</applet>

Can someone please explain to me how to embed this into a webpage?

Thanks!

UPDATE:

I just figured out that .jar files can be unzipped. Here's what I got when I unzipped it:

Captor.class
Captor.java
ImageFrame.class
ImageFrame.java
META-INF (folder)/MANIFEST.MF

Now I have a class file to work with, but I still haven't been able to get the HTML right. Am I even supposed to decompress the jar file? Or what? It seems like a simple thing to do, but oddly I can't find any simple, clear, step-by-step tutorials on how to do this, so I'm lost. Any help would be greatly appreciated.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members