title: RFT throws unsatisfiedLinkError when making JNI call
body: <p>I have a two line code in Rational Functional Tester script which is calling a method defined in a dll (created for jni call). But I am getting error:  [java.lang.UnsatisfiedLinkError] - com/JniSleep.jniWait()V.].</p>
  
  <p>import resources.Script1Helper;</p>
  
  <p>import com.JniClass;</p>
  
  <p>public class Script1 extends Script1Helper
  {</p>
  
  <pre><code>static {
      System.load("C:/VisualStudioProject/JniClass/Debug/JniClass.dll");
  
  }
  public void testMain(Object[] args) 
  
  {
  
          JniClass jniClass = new JniClass();
          jniClass.jniWait(); //error thrown here
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>If I run the same piece of code in a normal java class (not RFT script), in the same RFT project, it works like a charm (code below). </p>
  
  <p>import com.JniClass;</p>
  
  <p>public class testTimer {</p>
  
  <pre><code>/**
   * @param args
   */
  
      // TODO Auto-generated method stub
      static {
          System.load("C:/VisualStudioProject/JniClass/Debug/JniClass.dll");
      }
      public static void main(String[] args) {
  
  
              JniClass jniClass = new JniClass();
              jniClass.jniWait();
  
      }
  </code></pre>
  
  <p>}</p>
  
  <p>Why is the code not working in RFT script ? I have tried setting the ddl in Native library setting too but that did not help. Can anyone please help.</p>