Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

How to .jar class files?

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
_Esam
Asked:
_Esam
  • 8
  • 6
1 Solution
 
CEHJCommented:
In dev
0
 
_EsamAuthor Commented:
I don't see it !!!
0
 
CEHJCommented:
What was the exact command you used (including the command line)?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
_EsamAuthor Commented:
jar cvf myjar.jar com/a/b/c/*/*

0
 
CEHJCommented:
(including the command prompt)

that should have said sorry
0
 
_EsamAuthor Commented:

(including the command prompt) ????

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



_Esam...
0
 
CEHJCommented:
OK. Please post the output of

/home/esam/dev>ls -l m*
0
 
_EsamAuthor Commented:
m* not found !!
0
 
CEHJCommented:
What *is* in there then?

/home/esam/dev>ls -l
0
 
_EsamAuthor Commented:
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
 
CEHJCommented:
/home/esam/dev> jar tf myjar.jar
0
 
_EsamAuthor Commented:
what is ths META-INF doing here ??
0
 
CEHJCommented:
That's put in by jar automatically
0
 
CEHJCommented:
:-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now