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

What is ioc concept & explain it?

618


Explain what is orm?

672


Can you control when passivation occurs?

596


When is the best time to validate input?

604


Why are my checkboxes not being set from on to off?

637






What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

578


What is the difference between the session.get() method and the session.load() method?

598


Why does the option tag render selected=selected instead of just selected?

673


the same information whether it will connect to the database or it will be used previous information?

570


If your ui seems to freeze periodically, what might be a likely reason?

545


What is the immediate superclass of the applet class?

599


What is the difference between RMI registry and OS Agent?

628


What is Stream Tokenizer?

1728


Which component handles cluster communication in jboss?

622


What modifiers may be used with an interface declaration?

558