'Binding C++ libraries and call it from Java code

Does anybody know about binding two programming languages ? For example, I need to use C++ libraries in my Java code program? What is the solution? I need two different compiles, how can I bind them?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source