How to create a JAR file ?

Reply

Join Date: Jul 2005
Posts: 35
Reputation: k_en is an unknown quantity at this point 
Solved Threads: 0
k_en k_en is offline Offline
Light Poster

How to create a JAR file ?

 
0
  #1
Feb 14th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to create a JAR file ?

 
0
  #2
Feb 14th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: How to create a JAR file ?

 
0
  #3
Feb 14th, 2006
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.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to create a JAR file ?

 
0
  #4
Feb 15th, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC