Solved

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

Posted on 2002-05-12
1
1,281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

729 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