• Post Reply Bookmark Topic Watch Topic
  • New Topic

call java classes from within c++ code  RSS feed

 
Ruilin Yang
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!