aspose file tools
The moose likes Beginning Java and the fly likes Exception while creating a Jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Exception while creating a Jar file" Watch "Exception while creating a Jar file" New topic
Author

Exception while creating a Jar file

ajay yaduwanshi
Greenhorn

Joined: Oct 12, 2007
Posts: 28
Hi All,
I am getting file not found exception while I am jar file. Below I am putting , wht I am getting while creating the jar file.
jar cvfm 800PBXMAIN.jar -C Manifest.txt \ main \

Where Manifest.txt is the manually created manifest file and main is the package name containing the class file having the main class. both the main package and Manifest file kept in the bin folder of jdk.


java.io.FileNotFoundException: -C (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.tools.jar.Main.run(Main.java:122)
at sun.tools.jar.Main.main(Main.java:903)


Please help me with this.

Thanks & Regards

Ajay Singh Yaduwanshi
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9939
    
    6

Please choose the correct forum when making your posts. This forum is for asking questions ABOUT THIS WEB SITE, not for asking questions about java.

I'll see about getting this moved to a more appropriate forum.


Never ascribe to malice that which can be adequately explained by stupidity.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
You have the -C option in the wrong place. Check the doc for the jar command and the problem should become obvious.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while creating a Jar file
 
Similar Threads
error while using jar -tvf file.war
How to create an executable in java
Difficulty in adding own manifest file
Exception while creating jar file
jar file not working