[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • 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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
_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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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