Jump to content

I'm an intermediate in java and c++ too. I was wondering if there is any way to exchange data between a java application and a c++ application. For eg, the java application uses the exec() method from the Runtime class (this may not be the best way to do it) to execute the c++ program . the c++ program performs some operations. 

 

(I'm not sure if I'm asking the right question)


Is there any way for the c++ program to return a specific integer to the java program to signal if the c++ application has successfully completed its task ?  I'm just curious as to how one would do it.

 

Thanks in advance.

Ps. I'm a student with exams around the corner, so i apologize if i don't reply for a while.

Pps. I used to use Blender a lot (now i don't anymore coz i don't have time and need to study), what are your thoughts on Eevee ? I heard about it yesterday and its frigging amazing! if only blender supported my amd gpu :( 

Link to comment
https://linustechtips.com/topic/821278-java-and-c/
Share on other sites

Link to post
Share on other sites

17 minutes ago, David_Velho said:

I was wondering if there is any way to exchange data between a java application and a c++ application.

You could have a look at the Java Native Interface (JNI).

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
https://linustechtips.com/topic/821278-java-and-c/#findComment-10292426
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×