• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Manifest.MF is not generate correctly

 
Zhi Gang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic