Search

How to create a simple Jar File from the list of class files in a directory?



We can use below command. Don’t miss the space between / and . at the end

$ jar -cvf jarfilename.jar -C <classfiles folder>/ .