AGeek
AGeek

Reputation: 5225

How to make a Jar file out of a Java Program

I want to design a small Java Program(Swings), Which will take some input as text and after pressing a JButton, creates a jar file in the output..

Hope i have given enough information..

Thanks a Lot!!.

Upvotes: 1

Views: 175

Answers (2)

Valentin Rocher
Valentin Rocher

Reputation: 11669

You could use JarOutputStream

Upvotes: 0

Ashish Yadav
Ashish Yadav

Reputation: 1697

use this for a file such as xyz.java jar cfe xyz.jar xyz *.class; in the command prompt after making the .class file....

Upvotes: 1

Related Questions