Solved

How to .jar class files?

Posted on 2006-07-03
14
215 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
basic hardware to learn oop advanced design patterns 3 88
best (free) software to access postgres db (java) 1 32
backtracking recursion  code 19 53
jar file executable 12 39
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…
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 …
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 …

911 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

21 Experts available now in Live!

Get 1:1 Help Now