C# to Java Interoperability

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

What are some people doing to provide interoperability between C# and
Java (on Windows)?

What kind of samples are there available?

I want my C# code to call a Java Class (on Windows).
 
There are some commercial products such as JNBridge and J-Integra
that allow you to make calls between the different environments
(I haven't actually tried either of these so I can't make any
recommendations.)

-- jeff
 
You could perhaps compile the Java-stuff into it's own assembly using J#
and reference that assembly from your C# code.

Regards,
Joakim
 
Larry said:
What are some people doing to provide interoperability between C# and
Java (on Windows)?

What kind of samples are there available?

I want my C# code to call a Java Class (on Windows).

Borland's Janeva is a nice offering http://www.borland.com/janeva/ its
very simple to use, and has a free trial, not sure what it costs though.

Cheers Tim.
 
Hi Tim, did you try Janeva? I took at look at Borland's site and
from what I can tell, it provides a way to make remote calls
via RMI. Can you actually use it to access a regular Java
class or jar?

-- jeff
 
jeff said:
Hi Tim, did you try Janeva? I took at look at Borland's site and
from what I can tell, it provides a way to make remote calls
via RMI. Can you actually use it to access a regular Java
class or jar?

-- jeff

I tried it its very early stages, but nothing real, just playing with
it really. I think you are right about remote accessing only via RMI
(certainly that's what I was doing) and talking to App Server hosted
object instances.

I may well be wrong but I don't think you can use Janeva to just
instantiate locally a regular java class.

Cheers Tim.
 
Back
Top