Creating a jar File of Java Program in Command Prompt
Presss win key + R
Write cmd then click OK.
Navigate to the folder that holds your class files:
e.g - C:\>cd myjavapro
Compile your class(es):
C:\myjavapro> javac *.java
Create a manifest file:
C:\myjavapro> echo Main-Class: mypro >manifest.txt
Create a jar file:
C:\myjavapro> jar cvfm mypro.jar manifest.txt *.class
Test your jar:
C:\myjavapro> mypro.jar
No comments:
Post a Comment
Thank You !