1

I have taken an executable jar file from server to my local system and then I have unrar it through win rar and then I have made some changes in the .class file now i again want to make executable jar file of the folder that get created when I initially unrar it please advise how can i create executable jar file again

folks please advise with context to creating an executable jar file

dgfd hgfhg
  • 105
  • 1
  • 8

1 Answers1

2

Let's say that all your project file's are in folder named MyApp

then

  1. open command prompt
  2. navigate to directory where MyApp is placed using cd
  3. execute command jar cvf MyApp.jar MyApp

EDIT (To make this jar executable:)

create a file named MANIFEST.MF and put it in META-INF folder

META-INF/MANIFEST.MF

Manifest-Version: 1.0
Main-Class: com.somepackage.MyApp

OR you can simply use Launch4j to wrap up your program into an executable: http://launch4j.sourceforge.net/

StealthVice7
  • 95
  • 12
Raman Sahasi
  • 30,180
  • 9
  • 58
  • 71