This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properly Setting up a Manifest file

 
Scott Kimberly
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im fairly confident that im having trouble with my JAR file creation because i cant get the Manifest file right.

I have 1 .java file that i want to make into a JAR. It is located here: C:\Users\scott\headfirst java workspace\headfirst java\src\chatClient\SimpleChatClient

The Manifest file is in the same directory, ie -> C:\Users\scott\headfirst java workspace\headfirst java\src\chatClient\Manifest

My Manifest file reads as follows:


It has the return at the end. Ive tried leaving it as just Main-Class: SimpleChatClient and also putting the full extension like i did above.

Where am i going wrong?
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just put the class name there. That includes the package name, if you put the class in a package, but not the ".class" file extension. Where the class happens to have come from, in your IDE's directories, is irrelevant to the jar and its users.
 
Scott Kimberly
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:You just put the class name there. That includes the package name, if you put the class in a package, but not the ".class" file extension. Where the class happens to have come from, in your IDE's directories, is irrelevant to the jar and its users.


Thanks!

I changed it to the package.javaclass (with no extension of course) and it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic