• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

c++ call java classes

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic