title: Generate JNI header file in different packages
body: <p>If I have all my .java and .class files in one place (i.e. in the default package) then everything is OK and I do all the JNI stuff, etc.
  But in this case I have package-ception (lots of directories), my class and Java files are separated in <code>/bin</code> and <code>/src</code> and so on. And I need to generate the header file, but I am getting errors all the time. I tried so many commands, I saw different tutorials. I am already out of options. 
  So my project is in <code>c://gvk/SEP3</code> and then the class and Java files with the native methods that I am gonna use are in <code>/bin/CalculatorServer</code> and <code>/src/CalculatorServer</code></p>
  
  <p>I have all the time run the <code>javah</code> command from the directory where the class file with the native methods is. The commands I tried so far are:</p>
  
  <pre><code>javah -d ./CalculatorServer NativeMethodsCalculator
  </code></pre>
  
  <p>Error: Could not find class file for 'NativeMethodsCalculator'.</p>
  
  <pre><code>javah -d ./CalculatorServer CalculatorServer.NativeMethodsCalculator
  </code></pre>
  
  <p>Error: Could not find class file for 'CalculatorServer.NativeMethodsCalculator'.</p>
  
  <pre><code>javah -d c://gvk/SEP3/bin/CalculatorServer -classpath c://gvk/SEP3/bin/CalculatorServer NativeMethodsCalculator
  </code></pre>
  
  <p>Error: Could not find class file for 'NativeMethodsCalculator'.</p>
  
  <pre><code>javah -classpath c://gvk/SEP3/bin/CalculatorServer -o NativeMethodsCalc.h src.CalculatorServer.NativeMethodsCalculator
  </code></pre>
  
  <p>Error: Could not find class file for 'src.CalculatorServer.NativeMethodsCalculator'.</p>
  
  <pre><code>javah -jni bin.CalculatorServer.NativeMethodsCalculator
  </code></pre>
  
  <p>Error: Could not find class file for 'bin.CalculatorServer.NativeMethodsCalculator'.</p>