SMF For Free Support Forum
Signup For Free Forum
September 10, 2010, 09:53:22 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Make Java archive(JAR) without batch  (Read 1298 times)
0 Members and 1 Guest are viewing this topic.
Kalphiter
SMF For Free Full Member
*
Offline Offline

Posts: 135


DE30AC #409


View Profile
« 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)
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.
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 4.801 seconds with 25 queries. (Pretty URLs adds 0.049s, 2q)