Advertise Here

Author Topic: Make Java archive(JAR) without batch  (Read 3923 times)

0 Members and 1 Guest are viewing this topic.

Offline Kalphiter

  • SMF For Free Full Member
  • *
  • Posts: 135
  • DE30AC #409
    • View Profile

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Make Java archive(JAR) without batch
« 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.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
7951 Views
Last post November 28, 2008, 07:06:38 pm
by [JeReMy]
1 Replies
4804 Views
Last post July 02, 2008, 01:16:07 pm
by Jessie
0 Replies
2679 Views
Last post August 04, 2008, 06:38:55 am
by sanga282
10 Replies
11816 Views
Last post January 09, 2010, 01:57:39 pm
by hell hound
1 Replies
1094 Views
Last post November 27, 2012, 11:09:06 am
by SMF For Free