they said in command prompt that 'javah' is not recognized as an internal or external command, operable program or batch file
The first thing to do is to make sure you have the Java Development Kit downloaded and installed. You will get that message if the javah executable is not on the path. (This has
nothing to do with the classpath). The best way to check the configuration of your installation is to write, compile and run a simple HelloWorld program. There are instructions in
Oracle's Tutorial (that link assumes you are using Microsoft Windows).
Towards the bottom of that page their is a link to the
Common Problems (and the solutions) page whose first item is the error message to which you refer. It is discussed in the context of not being able to locate the javac executable rather than the javah one, but the principle (and solution) is the same.
Much of the Tutorial will be of use if you are unfamiliar with Java. Some familiarity is required to use jni as discussed, for instance, in the
JNI Technology chapter of Oracle's "Advanced Programming for the Java 2 Platform".