Solved

How to .jar class files?

Posted on 2006-07-03
14
222 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 34
Oracle SQL syntax check  without executing 6 54
Windows 10 IE Certificate Issue 10 45
by zero exception 10 41
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)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

772 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