I am doing project in c# windows application, and it has 2 modules, first module is made of c#, and the second module is made using JAVA.
Can someone help me with calling my java class file from the c#???
Thanks & Regards,
Kannan.S
I am doing project in c# windows application, and it has 2 modules, first module is made of c#, and the second module is made using JAVA.
Can someone help me with calling my java class file from the c#???
Thanks & Regards,
Kannan.S
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raaj KumarRank #7,836 · 233 reputationPosted Mar 4, 2010, 3:33 AM EST
There are multiple ways you can use. One is like making use of JNI(Java Native Interface). It is framework which allow other programming languages like C,C++ to be called. So you create a C++ project which will act as a interface between your C# and Java.
Below link has a tutorial for that.
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html
More simplest way is using CSharpJavaMerger, Which is opensource framework. You can download it from here.
Regards,
raaj
kannan s65 reputationPosted Mar 4, 2010, 4:03 AM EST
Thanks.... but could you explain.....