The most intelligent Java IDE
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Ant, Maven and Other Build Tools
 
RSS feed
 
New topic
Author

no such file or directory. added manifest.

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Messages: 56


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
Messages: 2346

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
Messages: 56


I gave like this



befoer i gave end with ";". thats main problem.
Now its came correctly..
Thanks..
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Ant, Maven and Other Build Tools
 
RSS feed
 
New topic
IntelliJ open source