Solved

How do I pack my java app ?

Posted on 2002-05-01
2
159 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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.

746 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

9 Experts available now in Live!

Get 1:1 Help Now