How to make a JAR from .java without help of IDE by javac and jar? Consider we have below files:
First at all, let's compile Hello.java:
Then it is time to archive *.class into Hello.jar:
Finally, let's test the jar:
* javac - Java programming language compiler
* jar - Manipulates Java Archive (JAR) files.