Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to extract JAR file in particular directory

807599Apr 9 2007 — edited Apr 9 2007
Hi,

I am extracting a JAR file(A.jar) in a Makefile

Now the path of the Makefile is say /home/developer/

The location of the JAR file is in /opt/tools/mk/A.jar

I am extracting the jar file as:

jar xvf /opt/tools/mk/A.jar

This creates a directory named "A" under /home/developer, since the location of the Makefile is at /home/developer.

Question) How do I unjar /opt/tools/mk/A.jar under /opt/tools/mk/ itself, irrespective of the location of the Makefile?

thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2007
Added on Apr 9 2007
3 comments
13,260 views