Solved

How to .jar class files?

Posted on 2006-07-03
14
205 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
  • 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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 …

705 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

16 Experts available now in Live!

Get 1:1 Help Now