File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Compiling Of J2SE Files to Jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Compiling Of J2SE Files to Jar file" Watch "Compiling Of J2SE Files to Jar file" New topic

Compiling Of J2SE Files to Jar file

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
hi guys

i need to find out how to compile my java project in to a jar file

suggestion needed thanks in advance

[ November 15, 2005: Message edited by: koh khai huat ]

if (!WorkHard){
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749

One note, although compiling a jar and building it are usually done together, they are not exclusive to one another. You take a bunch of files that have all ready been compiled, add create a jar out of them. Really, a jar is the java equivalent of a zip file that can hold any type of file, compiled or not.

[OCA 8 Book] [Blog]
It is sorta covered in the JavaRanch Style Guide.
subject: Compiling Of J2SE Files to Jar file
jQuery in Action, 3rd edition