• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no such file or directory. added manifest.

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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..........





 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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\
 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I gave like this



befoer i gave end with ";". thats main problem.
Now its came correctly..
Thanks..
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic