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 are the steps to write p-to-p model application?

1970


Can constructors be synchronized in java?

631


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

576


What method is invoked to cause an object to begin executing as a separate thread?

582


Can I run seam outside of jboss as?

646






what is a non-repeatable read?

1836


Explain how will the struts know which action class to call when you submit a form?

530


How task's priority is used in scheduling?

1794


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2272


What you mean by COM and DCOM?

627


What must a class do to implement an interface?

590


What is scalable, portability in the view of J2EE?

1883


Define the remote object implementation?

2009


What’s jboss jbpm?

595


What are the different types of exception?

579