how convert java file to jar files?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
what about static?
Why doesn’t the focus feature on the tag work in every circumstance?
How do you download stubs from a Remote place?
What are synchronized methods and synchronized statements?
Write a program to show synchronization?
Why a client should be multithreading? Explain.
can a static method be overridden
What is an applet?
What is Connection Pooling?
1 Answers Enteg Technologies, Infosys, Polaris,
1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?
Why is actionform a base class rather than an interface?
What is TL and its use?