menu

arrow_back How to connect a Java application with a C application?

by
1 vote
Please tell me if it is possible that the site is written using java, and the logic is written for example in C. If yes
then why and how will this bind? For example, I enter some data on the site (the site is written in java), and they are sent to some calculations to the program, which is written in C. If at all in this sense and when?

2 Comments

If so, why and how will this bind?
That's a good question to ask yourself.
Are you sure the site is java? Not JavaScript?

1 Answer

by
 
Best answer
0 votes
Please tell me if it is possible that the site is written using java, and the logic is written in C, for example. If so, why and how will this link be made?

You can, there are many options, from calling native methods to RMI.

If and when it makes sense at all?

This can make sense in two cases: when you need to make some complicated calculations using CUDA, OpenCL, etc., or when the performance of C code is much faster. But in the second case it is more logical to optimize Java code.

In most web and interpipe tasks, such bicycles are unnecessary.