Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-05-12
1
Medium Priority
?
1,289 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

916 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