locked
Can i use .Net dll in Java? RRS feed

  • Question

  • i want to use .Net dll in java so can I use it?

    Tuesday, July 24, 2012 7:18 AM

Answers

All replies

  • Yes. You can. Please visit below link,

    http://codefry.blogspot.co.uk/2012/01/calling-net-dlls-from-java-code-without.html#!/2012/01/calling-net-dlls-from-java-code-without.html

    I hope this helps.


    Please mark this post as answer if it solved your problem. Happy Programming!

    • Proposed as answer by Carl Daniel Tuesday, July 24, 2012 6:11 PM
    • Marked as answer by Mike Feng Thursday, August 9, 2012 2:11 PM
    Tuesday, July 24, 2012 7:32 AM
  • There are third-party bridges that will help you do this.  JNBridgePro (www.jnbridge.com) is one such product.  Disclosure: I am affiliated with JNBridge.
    Friday, July 27, 2012 5:43 AM
  • I would suggest also Javonet. This is light version of JNBridge at half price and much much simplified. You add one jar file to your java project and next using Javonet object load your dll and invoke any methods, set/get fields, retrieve results, subscribe .net events, handle exceptions and a lot more.

    It looks like this:

    Javonet.AddReference("mylibrary.dll");
    NObject myObj = Javonet.New("MyObject");
    int result = myObj.Invoke("GetRandomInt");

    Very simple and quick to start. Check the website and quick start guide for more details at:

    http://www.javonet.com


    SdNcenter

    Wednesday, June 19, 2013 10:34 PM