Using natives?

Started by TechNick6425, August 13, 2013, 14:38:02

Previous topic - Next topic


I saw that LWJGL uses native DLLs and others, but how do you link these with Java, and how are they written in the DLL?


If the native files are in the same directory as the program is executed in, they will be automatically included.

Alternatively you can pass the path to LWJGL in code before initializing anything using the "hidden switch" as described here.

One other option is to load the natives yourself by calling.


Those are all the options that I know of.

Fool Running

I think he's meaning how do you write the code to have Java call native libs. It uses the Java Native Interface. See for more information or Google "java jni tutorial".
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D