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

Is there a guarantee of uniqueness for entity beans?

0 Answers  


Why a component architecture for the java platform?

0 Answers  


What is chat area? Explain.

0 Answers  


What are the steps to write p-to-p model application?

0 Answers  


1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  






How would you create a button with rounded edges?

0 Answers  


If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

8 Answers   HeadStrong,


Why won’t the jvm terminate when I close all the application windows?

0 Answers  


Define the remote interface?

1 Answers  


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

0 Answers  


What is an abstract method?

0 Answers  


What is Bootstrapping in RMI?

1 Answers  


Categories