Solved

How to make a jar file out of this package structure ?

Posted on 2002-05-12
1
1,244 Views
Last Modified: 2012-05-07
Here is my package directory structure :

C:\Java_Test\classes\com\LoopBack\util
C:\Java_Test\classes\com\LoopBack\tool
C:\Java_Test\classes\com\LoopBack\app

How do I make jar out of it ?
0
Comment
Question by:tanc02
1 Comment
 
LVL 1

Accepted Solution

by:
clim1219 earned 50 total points
ID: 7005292
Assuming that the root directory of the package is
C:\Java_Test\classes. You can create a jar file that contains com\LoopBack\util, com\LoopBack\tool, and com\LoopBack\app by issuing this command:

cd C:\Java_Test\classes
jar cvf jarfilename.jar *

Where:
c - Creates a new archive
v - Generates verbose output
f - The next argument specifies a jar file to process. In this case jarfilename.jar
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now