how convert java file to jar files?

Answers were Sorted based on User's Feedback



how convert java file to jar files? ..

Answer / 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

how convert java file to jar files? ..

Answer / somu

jar -cvf jarName.jar *.class

Is This Answer Correct ?    19 Yes 15 No

how convert java file to jar files? ..

Answer / syamsunder

We can convert the filename and .classFile name by using command prompt...........like this

jar -cvf <filename.jar> <filename.class>

Is This Answer Correct ?    6 Yes 2 No

how convert java file to jar files? ..

Answer / patrick hp

How to convert jar to .exe?

Is This Answer Correct ?    1 Yes 0 No

how convert java file to jar files? ..

Answer / patrick hp

Write:
jar -cvf <nome>.jar *.class
e aperte enter, assim como a pessoa q fez a 5ยช resposta disse.

Is This Answer Correct ?    1 Yes 0 No

how convert java file to jar files? ..

Answer / 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

how convert java file to jar files? ..

Answer / jay

just go to file menu AND CLICK ON THE OPTION EXPORT/EXPORT
AS JAR FILE/CREATE JAR FILE

Is This Answer Correct ?    2 Yes 4 No

how convert java file to jar files? ..

Answer / srinu

To convert Java files to jar files is easily
cmd:/>mkdir java
cmd:/>cd java
cmd:\java> jar CVF Filename.jar
Then create jar file your specified Directory

Is This Answer Correct ?    16 Yes 36 No

how convert java file to jar files? ..

Answer / kannan

java file extract the .jar save

Is This Answer Correct ?    12 Yes 38 No

how convert java file to jar files? ..

Answer / fds

by just putting .jar extension

Is This Answer Correct ?    31 Yes 168 No

Post New Answer

More Advanced Java Interview Questions

can we write implementation for a method with in another method?

3 Answers   Cap Gemini,


What are the methods used for inter-thread communication? and in what class these methods are defined?

2 Answers  


What is a sessionfactory? Is it a thread-safe object?

0 Answers  


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

0 Answers  


Dear freinds... I want to know how to write self mapping for a table using hibernate?

1 Answers   Cap Gemini,






What is aop(assepct oriented programing)?

0 Answers  


How to pass parameters in RMI?

0 Answers  


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

0 Answers   Ducat,


what is the RMI / IIOP?

3 Answers  


Why DOM Parser would take more Memory than SAX parser while they are parsing?

3 Answers   OnMobile,


How can a dead thread be restarted?

1 Answers   IBM, Wipro,


What is the difference between java class and bean?

0 Answers  


Categories