Solved

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

Posted on 2002-05-12
1
1,282 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses

623 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