title: Need to reference and use a C# dll in Java
body: <p>I need to reference a .Net dll in java. I have used jni4net libraries for the same. I have followed the steps mentioned in the video below : </p>
  
  <p><a href="https://www.youtube.com/watch?time_continue=351&amp;v=8OoSK_RWUe4" rel="nofollow noreferrer">https://www.youtube.com/watch?time_continue=351&amp;v=8OoSK_RWUe4</a></p>
  
  <p>I have followed all the steps required to reference jni4net libraries but i get the following runtime Exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: orionforpython.DynamicOrion.__ctorDynamicOrion0(Lnet/sf/jni4net/inj/IClrProxy;)V
  at orionforpython.DynamicOrion.__ctorDynamicOrion0(Native Method)
  at orionforpython.DynamicOrion.&lt;init&gt;(DynamicOrion.java:25)
  at com.orion.OrionForJava.main(OrionForJava.java:16)
  </code></pre>
  
  <p>After following all the steps, This is my code:</p>
  
  <pre><code>    package com.orion;
      import net.sf.jni4net.Bridge;
      import orionforpython.*;
      import java.io.*;
      class OrionForJava {
      public static void main(String[] args) throws IOException {
      Bridge.setVerbose(true);
      Bridge.init();
      File proxyAssemblyFile=new File("OrionForPython.dll");
      Bridge.LoadAndRegisterAssemblyFrom(proxyAssemblyFile);
      DynamicOrion orion=new DynamicOrion();
      String res=orion.ReqLogin("user", "pwd", "");
      System.out.print(res);
    }}
  </code></pre>
  
  <p>I have tried executing the same using NetBeans 8.1 IDE but with no success. I am using jni4net-0.8.8.0 version and Eclipse IDE for Java Developers
  Version: Oxygen.3 Release (4.7.3)
  Any assistance would be helpful!</p>