0

I'm trying to create a version of RakNet for Java. I've heard about how JNI can execute C++ code. So from what I understand I need to have two libraries. One is RakNet itself, the other is a bridge written with JNI that calls the appropriate method from RakNet. But due to the large size of RakNet, it would take all month to create the bridge from Java to RakNet.

Is there a way to do what I've explained more efficiently? I don't even know if I'm doing this correctly.

4

1 回答 1

0

您可以查看 JNA(Java Native Access)。在 JNA 中,无需编写桥接库。

于 2014-12-14T15:09:28.990 回答