Reputation: 11
Ok, so in order to find an easier way to build jar files I took a users advice and tried to go the Apache Ant way. I am going step by step through this tutorial http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#prepare
Everything is fine until I get to the line:
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes
I get a long message right after that line that goes something like this...
"Useage: jar {ctxui}[vfm0me] [jar-file] [manifest-file] [entry-point] [-C dir] files..." Then it lists Options.
I am trying to figure out where I am going wrong as I thought following a tutorial word for word file for file directory for directory would be simple. Am I doing something wrong or is the tutorial missing something??
Upvotes: 0
Views: 173
Reputation: 18064
I guess, you missed dot
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes .
Upvotes: 1
Reputation: 6905
In the tutorial, I see
jar cfm build\jar\HelloWorld.jar myManifest -C build\classes .
Are you missing the "." at the end possibly?
Upvotes: 1