File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes no such file or directory. added manifest. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "no such file or directory. added manifest." Watch "no such file or directory. added manifest." New topic
Author

no such file or directory. added manifest.

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68

I want to create jar in command promt.
I am using jakarta ant 1.5.1 .

I created like this..

D:\Projects\Calls\bin>jar cvf calls.jar *.class;

jar cvf calls.jar *.class;*.class; : no such file or directory
added manifest.

Then i will get this error.
jar is created but inside META-INF only it is there.


My Folder Sructure
Inside the bin folder
bin -> com.calls.bean
com.calls.home
com.calls.handler
com.calls.util

Like this i am having..

Inside the jar file I want
com and META-INF folder.

So How can i create jar.
Please..........





Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

Try this:

jar cvf calls.jar com

You were not very clear on where your files are located. The above command assumes these files exist:

D:\Projects\Calls\bin\com\calls\bean\*.class
D:\Projects\Calls\bin\com\calls\home\*.class
D:\Projects\Calls\bin\com\calls\handler\*.class
D:\Projects\Calls\bin\com\calls\util\*.class

and that you are running the jar command from D:\Projects\Calls\bin\

This message was edited 2 times. Last update was at by Peter Johnson



JBoss In Action
Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68

I gave like this



befoer i gave end with ";". thats main problem.
Now its came correctly..
Thanks..
 
 
subject: no such file or directory. added manifest.
 
developer file tools