aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes how to link .net dll to java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to link .net dll to java" Watch "how to link .net dll to java" New topic
Author

how to link .net dll to java

bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi,

i was want to link the .net dll created by a .net programer with java program.
i want to know the changes to be made in the java program to link that .net dll.

just as i'm using JNI to link various other programs using the native method created,



like we use the above native method in c++ or any other program, i want the coding for the java program for the following file




this is the header file




so i need to know what should be my java file be like???

Thanks in advance

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  70
JNI does not work directly with .Net. You'll need to create a C++ wrapper around the .Net library; then you can use JNI to interact with it.
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi,

how to create a c++ wrapper.


Thank you
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

http://faq.javaranch.com/java/ShowSomeEffort
http://faq.javaranch.com/java/SearchFirst

If you use Google, the first link is http://www.jnbridge.com/jnbpro.htm?gclid=CMKNzqfv5pkCFYFA3god8G5-RQ. That is a commercial product though.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
sorry and thank you, rob
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi,

kindly tell how to write a wrapper class..
i searched this site but dint get .

the info is provided above...

i will run java program and the java should call .net dll

kindly help.


Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to link .net dll to java