Jump to content

Help create a jar file please

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
J_hollow

J_hollow

    Newbie

  • Members
  • Pip
  • 6 posts
I created a program through textpad and hit has multiple java files as long as images in folders, Can someone tell me how i can put all these into a jar file....The WordTester is the one with the main method

Posted Image

#2
ksemeks

ksemeks

    Learning Programmer

  • Members
  • PipPipPip
  • 57 posts
Well, you first compile all tha *java files.
Then you create a MANIFEST.MF file, and you put in it:
Main-Class: WordTester
And then you create an executable jar, with the manifest:
jar cvfm yourJarName.jar MANIFEST.MF *.class

// d-_-b+