• 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:

call java classes from within c++ code

 
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 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
 
Bartender
Posts: 29139
215
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's nice, but it's really not that hard to do C network programming - after all, the current paradigms for network programming were mostly developed in C! I wouldn't go through the overhead of cranking up a JVM just for to talk over a network, but that's just my preference.
There are ways to call Java from C and I don't remember the names of any of them. You might try using the JavaRanch (and/or Google) search.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic