title: Creating a .h file using javah, getting error "Could not find class file for NativeDemo"
body: <p>I have researched several examples similar to this issue but i have yet to find one that is the solution to my problem. I am simply trying to do my first program using Native methods. I don't have the program stored in a hiearchy of packages because i tried to keep it as simple as possible for my first example. Here is how everything is stored:</p>
  
  <p>I Have one class called NativeDemo. It is stored in C:/JavaFiles/demo/. I compiled the program and the .class file is stored in this same folder. When I try to invoke the javah command on this program it tells me the class file can't be found. Can you please tell me what I am doing wrong?</p>
  
  <p>My javah command is stored in my JDK and is stored as follows: C:/jdk1.0.7_04/bin/</p>
  
  <p>On the command line from the command prompt I type:</p>
  
  <p>C:\JavaFiles\demo>C:\jdk1.7.0_04\bin\javah -jni NativeDemo
  also tried C:\JavaFiles\demo>C:\jdk1.7.0_04\bin\javah.exe -jni NativeDemo</p>
  
  <p>When I do this it tells me the class file can't be found. This is the same path used when compiled and it found the file, compiled, and created the .class file with no issues. </p>
  
  <p>Please help. Thanks. </p>