This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Java in General
Manifest file problems
Joined: Feb 14, 2006
May 08, 2006 07:33:00
I posted about a week ago, on this problem, and still im having problems. Just trying to create an executable jar file. This is what im doing. At the command line I'm typing:
jar cvfm package.jar manifest.mf "C:\mydocuments\Messenger"
my manifest file looks exactly like this: Main-Class: mainClass.java
yet when i run the executable jar file, it sais it cannot find the main class? what am i doing wrong? Thanks in advance for the help.
("Anger is not an emotion, its a symptom of fear.")
Joined: Dec 31, 2004
May 08, 2006 08:14:00
Main-Class is not the OS file path to the
class, but the actual package path to the class.
author and iconoclast
Joined: Jul 08, 2003
May 08, 2006 08:21:00
As Jeff says, the class name is what goes in the "Main-Class" line. Also note that the jar file itself must contain the compiled *.
file; the *.java file is no use here.
[Jess in Action]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Manifest file problems
Drag and Drop
why is this happening REALLY URGENT
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015