Solved

How do I pack my java app ?

Posted on 2002-05-01
2
178 Views
Last Modified: 2010-03-31
Could anyone please show me step by step : How do I pack my java
app (include many files and directory) into one jar file, after that
I can double click my mouse then my app will run.
Thankx, Bye.
(My OS is WINME)
0
Comment
Question by:kianh
2 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 50 total points
ID: 6983236
0
 
LVL 9

Expert Comment

by:Ovi
ID: 6983267
Suppose you have your files and directries in a dir called c:/Projects (or linux : /home/Projects).

To jar all the content of the Projects dir, use the command
jar -cvf archive.jar c:\Projects\
or
jar -cvf archive.jar /home/Projects/

Note that I use 'jar' which meens that the bin directory of your JDK should be set in the PATH system variable. If is not you can do'it, or write the full path to the 'jar' utility like
c:\JDK1.4.0\bin\jar -cvf ....
or
/usr/lib/jdk1.4.0/bin/jar -cvf ....
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

786 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