wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How to make a jar file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a jar file ?" Watch "How to make a jar file ?" New topic

How to make a jar file ?

faisal usmani
Ranch Hand

Joined: Jan 14, 2006
Posts: 139

I want to create a jar file for a client-server programme ,i ma having two main's in my code one for server and the other for client .

Please tell me the way to create a jar file .
John Dell'Oso
Ranch Hand

Joined: Apr 08, 2004
Posts: 130
Rather than giving you the answer straight up, I'll assume you want to do this from the command line. So type jar at the command line and you will get a screen of usage information for this command plus a couple of examples as well. Try it and see how you go.

It is sorta covered in the JavaRanch Style Guide.
subject: How to make a jar file ?
Similar Threads
create jar files and location of stub classes
I passed with a score of 137
EJB problem in JNDI lookup
Max upload file size?
Problem in invoking rmi server, which is existing in a jar file.