PC Review


Reply
Thread Tools Rate Thread

C# Dll to JAVA

 
 
Saurabh Sharma
Guest
Posts: n/a
 
      13th Jun 2006
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


 
Reply With Quote
 
 
 
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      13th Jun 2006
Hi,

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


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation



"Saurabh Sharma" <(E-Mail Removed)> wrote in message
news:OTr$r$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      13th Jun 2006
<"Ignacio Machin \( .NET/ C# MVP \)" <ignacio.machin AT
dot.state.fl.us>> wrote:
> You could register your DLL as a COM object, I'm not sure if you can consume
> COM objects from Jave though.


You'd want to use Jacob, probably:

http://danadler.com/jacob/

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Bjorn Abelli
Guest
Posts: n/a
 
      13th Jun 2006

"Ignacio Machin ( .NET/ C# MVP )" wrote...
>
> 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/...jni/index.html


/// Bjorn A

> "Saurabh Sharma" <(E-Mail Removed)> wrote in message
> news:OTr$r$(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
shane.sauer@shaw.ca
Guest
Posts: n/a
 
      14th Jun 2006
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
---------------------------------------------------------------
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
high performance interop middleware for java, corba, com & .net

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Control Panel Folder Empty - Cannot Uninstall Java 6 Update 1 Zinfan Windows XP General 6 23rd May 2009 09:01 PM
Java issues? Java compiler not listed? Soem PCs wont load site... a_gunslinger Windows XP Internet Explorer 6 18th Aug 2006 04:21 AM
ie crashes on a web page NO java or java scripts or java applets, on it!! mig30m6@hotmail.com Windows XP Internet Explorer 2 6th Aug 2005 03:58 AM
Cavaj Java Decompiler - reconstructs java source code from CLASSfiles Vegard Krog Petersen Freeware 0 8th Jul 2004 09:03 PM
Inline::Java 0.49 Stable - A tool to write Perl classes in Java. Gordon Darling Freeware 0 8th Jul 2004 01:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.