C# Dll to JAVA

S

Saurabh Sharma

Hi

I have a Project in C# which makes 4 dlls and takes 2 C# class of the dlls
and a string array as as an input and returns a string array.
I want to use these dlls in java. The dll also makes a Word Object.

Please suggest a method to do it.
I know that convert from C# to MC++ to C++ to java

But the problem with .netmodule is that its making of one class and not of
the dll or complete project.

TIA

Saurabh
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You could register your DLL as a COM object, I'm not sure if you can consume
COM objects from Jave though.
 
B

Bjorn Abelli

You could register your DLL as a COM object, I'm not sure if you can
consume COM objects from Jave though.

Sun had a Java-Com bridge available for download a couple of years ago. I
don't know if it's still available somewhere (I can't find it with a simple
search on Sun's site), but there are also some third party tools that will
do it, e.g. JIntegra:

http://j-integra.intrinsyc.com/

But there is also the more "down in the trenches" way of interoperability,
wrapping the calls to COM within a JNI native dll for java, via pure C/C++.

http://java.sun.com/j2se/1.5.0/docs/guide/jni/index.html


/// Bjorn A
 
S

shane.sauer

Intrinsyc Software offers a couple of different (commercial) options
for you...

1. J-Integra for COM:
- Java to COM interop
- Pure Java implementation of the DCOM protocol

2. J-Integra for .NET
- Java to .NET interop
- Pure Java implementation of the .NET Remoting protocol

http://j-integra.intrinsyc.com/

Regards,
Shane Sauer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top