Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to .jar class files?

Posted on 2006-07-03
14
Medium Priority
?
242 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 200 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

721 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