I am trying to create a jar file with many classes. Using the following command
C:\Users\use\Desktop\SDE_7_SSH\eclipse\new\charge\src\jar> jar cf charge.jar *.class
But it is throwing an error ‘jar’ is not recognized as an internal or external command,
operable program or batch file.
In my jar folder (C:\Users\use\Desktop\SDE_7_SSH\eclipse\new\charge\src\jar), i am having two other folders named “f1”, “f2”, which inturn having classes.
You need to run the jar command from bin directory. For example on linux system, I would either go to my directory
and then run
or else run it with the full path of java binary