title: Discovering jni4net samples
body: <p>I'm discovering the <a href="http://jni4net.sourceforge.net" rel="nofollow">jni4net</a>. This is the technology used to provide the bridge between Java and .NET. So, I created new Eclipse Java project and copied the sample code from jni4net-0.8.6.0-bin/samples/myCSharpDemoCalc->MyCalcUsageInJava.java into this project. However the code cannot be compiled because two imports "mycsharpdemocalc.DemoCalc" and "mycsharpdemocalc.ICalc" cannot be found. I don't understand how to integrate/import mycsharpdemocalc.c into the Java project so that the code could be compiled.</p>
  
  <pre><code>import net.sf.jni4net.Bridge;
  
  import java.io.IOException;
  
  import mycsharpdemocalc.DemoCalc;
  import mycsharpdemocalc.ICalc;
  
  public class MyCalcUsageInJava {
      public static void main(String arsg[]) throws IOException {
          Bridge.init();
          Bridge.LoadAndRegisterAssemblyFrom(new java.io.File("MyCSharpDemoCalc.j4n.dll"));
  
          ICalc calc = new DemoCalc();
          final int result = calc.MySuperSmartFunctionIDontHaveInJava("Answer to the Ultimate Question of Life, the Universe, and Everything");
  
          System.out.printf("Answer to the Ultimate Question is : " + result);
      }
  } 
  </code></pre>