how convert java file to jar files?

Answer Posted / ankit

> jar -cmf <manifestFile> <nameofjarfile.jar><filestobeincluded>
for eg
jar -cmf Whereismain.txt abc.jar xyz

c-tells the jar to create an archive
m-used to create and include manifest file(consist the info
which class contains the main() method)
f-specifies the name of the archive to be created.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

wahts is mean by dynavalidatorform in struts/

1569


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

546


What is table mutation and how do you avoid it?

1917


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1362


Have you used threads in Servelet?

1932






How many times may an objects finalize() method be invoked by the garbage collector?

672


Name the class that is used to bind the server object with RMI Registry?

1692


What’s jboss cache in short?

596


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

569


What you mean by COM and DCOM?

613


Are enterprise beans allowed to use thread.sleep()?

647


Explain about thread synchronization inside a monitor?

1998


What is the relation between the infobus and rmi?

558


What is the highest-level event class of the event-delegation model?

570


What is Stream Tokenizer?

1729