call java file from c#

Posted by Kannan1986 under C# on 3/4/2010 | Views : 6519 | Status : [Member] | Replies : 6
hi,

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#???




Responses

Posted by: Abhi2434 on: 3/4/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
There is a crap article like this :

http://www.csharphelp.com/2006/01/call-a-java-program-using-c/


You can read for fun, which actually just uses Process.Start to start a Java application. :) :)

If you want to do it really,
Try this :

http://it.toolbox.com/blogs/daniel-at-work/calling-java-from-microsoftnet-21813

I hope you will find this helpful.
Cheers.

www.abhisheksur.com

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sagarp on: 3/24/2010 [Member] Bronze

Up
0
Down
hi friend


Read following Article

http://www.c-sharpcorner.com/UploadFile/maheswararao/CallingJavaProgramfromCS12062005233321PM/CallingJavaProgramfromCS.aspx


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 3/25/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Sagarp... this is another crap article which uses batch file to run a java application.

It means there is no object being created in C# environment.



www.abhisheksur.com

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetbrat on: 2/8/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Kannan,
Do simple. Create a J# class file. Copy and paste your java code in J#. Now you can access the same J# class inside C#.

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/8/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this link

http://www.c-sharpcorner.com/UploadFile/maheswararao/CallingJavaProgramfromCS12062005233321PM/CallingJavaProgramfromCS.aspx

Thanks
Karthik
www.f5Debug.net

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Do you want to execute it??

Thanks

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Kannan1986, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response