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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
How to create a jar file in java please any body help me

Thank you

 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
//if not any executable jar i.e does not have any manifest
jar -cfM jarfilename.jar yourclassfilename.class

//if an executable jar i.e. has a manifest file too

-jar -cfm jarfilename.jar manifestfilename.mft yourclassfilename.class
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
In the future, please UseAMeaningfulSubjectLine. The one you chose is particularly unhelpful on this site where all questions deal with Java in one way or another.

You may want to work read the Java Tutorial chapter on jar files: http://java.sun.com/docs/books/tutorial/deployment/jar/index.html
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic