Using C ++ API in Java

I am currently developing a game in Java and want to publish it on Steam when it ends. Their website says that the Steam API was written in C ++, and when I emailed them a question about whether there is a way to use the API in Java, they told me that I need to write a wrapper for this

My question is: how do I write such a shell or did someone else write it earlier and made it available for download?

+3
source share
2 answers

The key technology you are looking for is the Java Native Interface

+3
source

You can use SWIG to automatically generate glue code (JNI).

++ java-
.
. Swig Java.

+3

All Articles