Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properly Setting up a Manifest file

 
Scott Kimberly
Greenhorn
Posts: 25
  • 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: 20960
31
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic