So I want to wrap a simple java library so to be able to use its functions from C#. Is it possible, how to do such thing?
BTW can we do such thing from C?
So I want to wrap a simple java library so to be able to use its functions from C#. Is it possible, how to do such thing?
BTW can we do such thing from C?
Have you taken a look at http://www.ikvm.net/?? It seems pretty popular and according to the site:
It is an implementation of Java for Mono and the Microsoft .NET Framework. It includes the following components:
A Java Virtual Machine implemented in .NET A .NET implementation of the Java class libraries Tools that enable Java and .NET interoperability
There are several ways you can do this.
1) Use web services (Requires a separate process).
2) Use JNI or some other native library.
3) Use some middleware (Queueing system)
Of course either of these would allow 2-way communications