| | |
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.
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*
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.
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.
![]() |
Similar Threads
- Unable to create an excel file in VB.net (VB.NET)
- Using JAR file (Java)
- How to include txt into jar file? (Java)
- Accessing Images in JAR file (Java)
- Loading classes from a .jar file (Java)
Other Threads in the Java Forum
- Previous Thread: linux/netbeans problem with default color covers set color of JTabbedPane
- Next Thread: need help with sorted list
| Thread Tools | Search this Thread |
actuate add android api applet application applications array arrays automation balls bank binary bluetooth business chat class clear client code codesnippet collections component database defaultmethod development dice digit dragging ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health hql html hyper ide idea image infinite int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list main map method methods mobile myregfun mysql netbeans nonstatic openjavafx parameter pearl php problem program project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string sun superclass swing swt thread threads tree windows






