B
B
Bartar2017-05-12 09:00:33
Java
Bartar, 2017-05-12 09:00:33

How to connect a Java application to a C application?

Please tell me if it is possible that the site is written using java, and the logic is written, for example, in C. If so
, why and how will this bundle happen? For example, I drive in some data on the site (the site is written in java), and they are sent for some calculations to a program that is written in C. If at all in this washed away and when?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2017-05-12
@Bartar

Please tell me if it is possible that the site is written using java, and the logic is written, for example, in C. If so, why and how will this bundle happen?

You can, there are many options, from calling native methods to RMI.
The meaning can be in two cases - when you need to perform some kind of extremely complex 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 the Java code.
For most tasks related to the web and the Internet, such bicycles are not needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question