The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Trick not working

Posted by Sachin on December 24, 2001 at 1:47 AM

This is the perfect way to create a jar file, but it is not working with my applet.
If it works only with applications then pl. mention it also.
I think this trick works only with Java Applications with main function.

if U know how to make my applet running without a browser, then pl. mail me back at
sachin@malhotra.inbox.as

Thanks
Sachin

> Hi ,

> I am just passing on the steps so that it may be useful:
> Steps for Creating executable Jar Files.

> 1.Create the java Program and compile It.

> 2.Make a manifest file(eg:Manifest.mf) as follows:

> Main-Class:
> eg:
> ===
> Main-Class: Test

> 3.Make the jar file:

> jar -cfm .jar

> eg:
> ===
> jar -cfm Test.jar Manifest.mf Test.class Test1.class

> 4.U have the executable jar file
>






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us