aspose file tools*
The moose likes Applets and the fly likes using jar with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "using jar with applets" Watch "using jar with applets" New topic
Author

using jar with applets

Francisco Castillo
Greenhorn

Joined: Oct 01, 2006
Posts: 3
Hi!

Does it possible to use jar tool for applets? I've tried to do it in netbeans, but I get next message to run the jar file generated:

Failed to load Main-Class manifest attribute form

Why?

Thanks a lot, in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Yes, applets can be delivered as jar files. In fact, that's the most common method in which they are deployed. But applets do not use a class having a "main" method like applications do, so they have no Main-Class attribute in the manifest.

To run the applet you'll need an HTML file that contains an <applet> tag, which is described in detail on this page of the Java Tutorial.

It could be as simple as


Ping & DNS - my free Android networking tools app
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 436
Well said Ulf

We have come face to face in 8 posts and this is the ninth



Maki Jav


Help gets you when you need it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using jar with applets