The Artima Developer Community
Sponsored Link

Java Answers Forum
JAR Question

1 reply on 1 page. Most recent reply: Dec 16, 2005 7:31 PM by Kishori Sharan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Matt S

Posts: 1
Nickname: annorax
Registered: Dec, 2005

JAR Question Posted: Dec 16, 2005 12:31 PM
Reply to this message Reply
Advertisement
I am trying to make an executable JAR of all my class files in the directory: c:\Java\Project\Legend\com\ and all subdirectories.

I am using the following JAR command:
%JAVA_HOME%\bin\jar cvfm legend.jar c:\Java\Project\Legend\com\MANIFEST.MF c:\Java\Project\Legend\com\*.*

However, the JAR will not run since the entire path of the program is in the JAR. How can I get the JAR to start at the \com level instead of at c:?


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: JAR Question Posted: Dec 16, 2005 7:31 PM
Reply to this message Reply
Try changing directory to c:\Java\Project\Legend and then issue the same command using "com\*.*" instead of "c:\Java\Project\Legend\com\*.*"

Flat View: This topic has 1 reply on 1 page
Topic: Equation for Intersection Previous Topic   Next Topic Topic: Secret Communication program

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use