cant execute jar command?

hi, i am a newb in j2ee. my reference is the beginning java ee 5 from apress. the application server that the book is using is JBoss, and while i try to write my first example, i need to make a war and an ear file, so i tried to do it in the console. i went to the directory of my first example and the tried to execute this:>jar cf web-app.war index.jsp but an error occur and said'jar' is not recognized as an internal or external command,

operable program or batch file.

question is, how can i make those files if i cant execute the "jar" command.

**by the way, i have a successful installation of JBoss.

thanks in advance.

[678 byte] By [pleighera] at [2007-11-26 14:17:22]
# 1
Set the path variable to your java_home/bin
AnjanReddya at 2007-7-8 2:07:47 > top of Java-index,Java Essentials,New To Java...
# 2
thanks, i already setup that path but i dont know if i did it right.my path is %JAVA_HOME%\bin;%JBOSS_HOME%\bin;is this correct?
pleighera at 2007-7-8 2:07:47 > top of Java-index,Java Essentials,New To Java...
# 3
go to ur java_home/bin there you can see a jar exe file.if you set ur path correctly it should workdo u set up JAVA_HOME in System variables to u'r java_hamethen only you can use %JAVA_HOME%/bin
AnjanReddya at 2007-7-8 2:07:47 > top of Java-index,Java Essentials,New To Java...