SMF For Free Support Forum

General Stuff => Programming => Java => Topic started by: Kalphiter on September 14, 2008, 05:29:39 pm

Title: Make Java archive(JAR) without batch
Post by: Kalphiter on September 14, 2008, 05:29:39 pm
This is if batch doesn't work.

Make a file called *.zip

Add a folder called META-INF.
Add a file in that folder called MANIFEST.MF(open it with notepad)
Code: (MF) [Select]
Manifest-Version: 1.0
Created-By: 1.6.0_07 (Sun Microsystems Inc.)
Main-Class: main

MAKE SURE IT ENDS ON A BLANK LINE!!!

Main-Class: the class that will be executed first.
Created-By: YOUR JDK VERSION

------------

Put all those files in *.zip

Rename to *.jar
Execute.



In case you didn't figure it out already, *.zip means whatever you want to call it.

-----------
Jar is the same compression as Zip.