Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Java-classes with C# [closed]

Tags:

java

c#

I have a project written in Java (>1.5).

Is it possible to write parts of the project with C#?
For instance the GUI and calling the methods and instantiate the classes written in java?

If yes, how?

like image 649
Burkhard Avatar asked Nov 27 '22 00:11

Burkhard


2 Answers

I am author of jni4net, open source intraprocess 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.

like image 56
Pavel Savara Avatar answered Dec 04 '22 20:12

Pavel Savara


Not without something like ikvm - or using web services etc to communicate between the two sides. Basically it's likely to be much more work than either rewriting your existing project code in C# or writing the GUI in Java.

like image 20
Jon Skeet Avatar answered Dec 04 '22 20:12

Jon Skeet