aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Manifest.MF is not generate correctly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Manifest.MF is not generate correctly" Watch "Manifest.MF is not generate correctly" New topic
Author

Manifest.MF is not generate correctly

Zhi Gang
Ranch Hand

Joined: May 03, 2003
Posts: 30
hi there, i am using window XP and j2sdk1.4.1_02
i have created a jar with
jar -cvfm sempleproject.jar Manifest.MF -C classes .
manifest.MF
------------
Manifest-Version: 1.0
Main-Class: sampleproject.gui.Application
in the sempleproject.jar
the only information that generate in meta-inf/Manifest.mf is below( after i unzip it )
Manifest.mf
-----------
Manifest-Version: 1.0
Created-By: 1.4.1_02 (Sun Microsystems Inc.)
p/s had tried 1.3.1, 1.3.1_8)
if anyone have any ideal please let me know
thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Here is my jar command that I used.
jar -cvfm server.jar c:\devexam\manifest\server\manifest.mf suncertify\db\*.class suncertify\server\*.class suncertify\help\*.class

Now it is possible in what happened to yours was that you didn't specify the path to where the manifest.mf file is that you created.
So instead it created its own, which was wrong.
You also had a -C before the classes. What is this for?
Hope that helps.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manifest.MF is not generate correctly