Solved

How to .jar class files?

Posted on 2006-07-03
14
240 Views
Last Modified: 2010-03-31
I know it and I did it but can't find my .jar !!!!

I am at the directory /home/esam/dev  and under this I have the class files at directories say: a/b/c/*/*

I .jar the files as: (from /home/esam/dev)

jar cvf myjar.jar a/b/c/*/*  

Now where is my myjar.jar ???

Which directory???

_Esam
0
Comment
Question by:_Esam
[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
  • 8
  • 6
14 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032271
In dev
0
 

Author Comment

by:_Esam
ID: 17032289
I don't see it !!!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032307
What was the exact command you used (including the command line)?
0
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

 

Author Comment

by:_Esam
ID: 17032313
jar cvf myjar.jar com/a/b/c/*/*

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032327
(including the command prompt)

that should have said sorry
0
 

Author Comment

by:_Esam
ID: 17032347

(including the command prompt) ????

/home/esam/dev> jar cvf myjar.jar com/a/b/c/*/*                        



_Esam...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032360
OK. Please post the output of

/home/esam/dev>ls -l m*
0
 

Author Comment

by:_Esam
ID: 17032377
m* not found !!
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 17032390
What *is* in there then?

/home/esam/dev>ls -l
0
 

Author Comment

by:_Esam
ID: 17032409
Hmm...  strange...

I see it now...

I see it with ls now...

How can I verify that the jar indeed has all the files ? (how to inspect it :)

_Esam...
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032422
/home/esam/dev> jar tf myjar.jar
0
 

Author Comment

by:_Esam
ID: 17032530
what is ths META-INF doing here ??
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032544
That's put in by jar automatically
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17032582
:-)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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 tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
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

630 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