Okay, this is probably a very newbie question, but i have been looking online on how to make a jar file and everything i come across says that i use the command

jar cf name.jar name.class

yet, whenever i do this in my command prompt it brings up "'jar' is not recognized as an internal or external command, operable program or batch file." Please i really would like to learn how to do this and i have been trying...