Solved

How do I pack my java app ?

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse buid path vs tomcat lib path 10 49
Eclipse with various Java releases 7 85
Java 8 to Java 6 8 43
Running JavaFX on the Raspberry Pi 27 281
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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…
Suggested Courses

732 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