aspose file tools*
The moose likes Beginning Java and the fly likes create JAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "create JAR" Watch "create JAR" New topic
Author

create JAR

vistatech vistatech
Greenhorn

Joined: Jan 22, 2004
Posts: 6
what's the command to reate a jar package?
lali virdi
Greenhorn

Joined: Feb 09, 2004
Posts: 19
go to the directory whose file you want to put in jar file
jar cvf test.jar *
where test.jar is your jar file and * denotes all the file that you want in the jar file
lali virdi
Greenhorn

Joined: Feb 09, 2004
Posts: 19
go to the directory whose file you want to put in jar file
jar cvf test.jar *
where test.jar is your jar file and * denotes all the file that you want in the jar file
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
vistatech vistatech,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Peyton McCullough
Ranch Hand

Joined: Feb 07, 2004
Posts: 31
Remember to create a manifest file the main class if you want the JAR to be executable.
Main-class: classgoeshere
[ February 10, 2004: Message edited by: Peyton McCullough ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create JAR