Java and C# interoperability

Question :

Java and C# interoperability,

Answer :

I have two programs. One is in C# and another one in Java.
Those programs will, most probably, always run on the same machine.

What would be the best way to let them talk to each other?

So, to clarify the problem:

This is a personal project (so professional/costly libraries are a no go).
The message volume is low, there will be about 1 to 2 messages per second.
The messages are small, a few primitive types should do the trick.
I would like to keep the complexity low.
The java application is deployed as a single jar as a plugin for another application. So the less external libraries I have to merge, the better.
I have total control over the C# application.
As said earlier, both application have to run on the same computer.
Right now, my solution would be to use sockets with some sort of csv-like format.

Read More  Does anyone still believe in the Capability Maturity Model for Software?


I am author of, open source interprocess bridge between JVM and CLR. It’s build on top of JNI and PInvoke. No C/C++ code needed. I hope it will help you.

That’s the answer Java and C# interoperability, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you

Read More  Retrieving the PC Name of a Client? (Windows Auth)