calling c# methods from a dll in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maidenz08
    New Member
    • Sep 2007
    • 31

    #1

    calling c# methods from a dll in Java

    Hi,

    I have a dll written in c#. I need to use this dll in java and call the functions from there.

    Is it possible to archive this?

    can someone shed light on the same.

    Any links..??

    Thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Read about JNI.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Wouldn't it be wiser to complete your project in C# alone? Otherwise you end up with two forms of Java (Microsoft stole Java from Sun, mutilated it and named it C# (hurray!)) that don't understand each other and will fight for the memory of the real machine. Oh, and yes, as already replied, you need a bit of C or C++ to glue the two together.

      kind regards,

      Jos

      Comment

      Working...