944,027 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 7975
  • Java RSS
Feb 14th, 2006
0

How to create a JAR file ?

Expand Post »
Does anyone know how to create a JAR file using JCreator ? i have try to create it but it gives me this error " Failed to load Main-Class manifest attribuite from c:\hello\.jar" which i doesn't know how solve it.
Similar Threads
Reputation Points: 13
Solved Threads: 0
Light Poster
k_en is offline Offline
35 posts
since Jul 2005
Feb 14th, 2006
0

Re: How to create a JAR file ?

check the documentation of the jar command.
If you insist on using an IDE to prevent you from learning the language and its tools use its documentation as well.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Feb 14th, 2006
0

Re: How to create a JAR file ?

You need to create a manifest file yourself.

Open up a notepad file and in it type:

Main-Class: Yourmainclass.withoutthedotextension

Then save it as

MANIFEST.MF

This may not work though. Your best chance would be to jar it up from the command line, which I found to be the best solution.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Feb 15th, 2006
0

Re: How to create a JAR file ?

I know JBuilder and ANT (and JBuilder uses ANT for it) can generate the manifest for you if you tell them the required information (like the main class...).
Comes in handy when you want an ANT script that does everything from compiling to testing to building your distribution archives.
RTFM to find out how.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: linux/netbeans problem with default color covers set color of JTabbedPane
Next Thread in Java Forum Timeline: need help with sorted list





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC