The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement
where you can ask and answer Java programming questions.">
artima.com - a resource for Java and Jini developers
Artima | Search | Java | Design | JVM | Jini | Books | Seminars | Subscribe 


Java Answers Forum
September 2000

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:

Executable jar files

Posted by Parth Bhatt on July 31, 2001 at 2:49 PM

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