This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how can we make a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how can we make a jar file" Watch "how can we make a jar file" New topic

how can we make a jar file

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
can anyone tell me
how can we make a jar file
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

jar cf filename.jar *.class

[Jess in Action][AskingGoodQuestions]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15099

Look at the documentation: jar - The Java Archive Tool
And the tutorial: JAR Files Tutorial

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
kalai sundar
Ranch Hand

Joined: May 25, 2005
Posts: 69
jar filename.jar classfilename

By executing the above command u c create ur own jar file.

I agree. Here's the link:
subject: how can we make a jar file
It's not a secret anymore!