how convert java file to jar files?

Answer Posted / uv

As far as I am aware about jar files, they are used to
archive the class files and not java files...
If you want to create a jar file for class files, you can
use following command:

cmd:\> jar cvf <name>.jar .

where (.) is for the current directory.

Is This Answer Correct ?    96 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to stop the execution of a method before completion in a sessionbean?

601


why static class in java

1277


What is the difference between static and non-static with examples?

1360


How a component can be placed on Windows?

2266


Difference between swing and awt?

603






What you mean by COM and DCOM?

619


What are the design considerations while making a choice between using interface and abstract class?

543


What is abstract schema?

555


What is mdb and what is the special feature of that?

568


What state does a thread enter when it terminates its processing?

605


What are the sequence of steps to write pub or sub model kind of application?

1895


What is jboss?

574


What is difference between object state and behavior?

583


what are the advantages of JTA over JTS?

1671


Java is fully object oriented languages or not?

542