• Post Reply Bookmark Topic Watch Topic
  • New Topic

c++ call java classes

 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to call Java classes in my c++ code. I do not know how to implement such a call.
Please help.
Ruilin
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using JNI: Interacting with Java from the Native Side
 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cindy,
Thanks for your comments. I may need to give you more specifics for you help.
I have written a c++ application. I want to call java classes from within my c++ code. My java classes are an implementation of RMI to broadcast to multiple recipients. Why I do this because I like the way java doing network programming.
Thanks
Ruilin
 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the best way to do is using pure C++ or pure Java. Anyways if you already have these aplications and you want to integrate then the there are two ways of doing it
1) Using SOAP
2) Using Custom made XML Messaging
I am not sure whether we could call Java classes from C++ using JNI, but I do know the other way is possible in JNI
--Siva Jagadeesan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!