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: 4875

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\


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.
 
Threads others viewed
about splash screen with jar file...
add manifest.mf to jar file using maven
Deployment of helloWorld bean in Weblogic7.0
Compile and Deploy On WebLogic 7.0
problem in manifest file created using jar task in ant
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture