?
Solved

How do I pack my java app ?

Posted on 2002-05-01
2
Medium Priority
?
201 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
[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
2 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 150 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 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