• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Saloon Keeper
Posts: 27764
196
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.
reply
    Bookmark Topic Watch Topic
  • New Topic