[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How do I pack my java app ?

Posted on 2002-05-01
2
Medium Priority
?
206 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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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.
Suggested Courses

656 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