Take a look at JNA . This is a 100% pure java way of communicating with native code.
They have a secondary library called Platform.jar , which contains some of the most common built-in APIs.
Although I know what it is, I have not used the platform, so I can not indicate where you will find what you are looking for. But from my global JNA experience, this should help A LOT !!!
(end of answer)
, , ( )... , , java.
librairy (jna.jar) libs (.dll,.so,.dylib) os/ java-end ( jar: ~ 1 Mo).
"A.dll", "A.so" "libA.dylib", :
int doSomething(char* aString ,byte* aByteArray, long* arraySize)
, JNA :
public class LibAWrapper{
Native.register("A");
public native int doSomething(String aString ,byte[] aByteArray, NativeLongByReference arraySize)
}
:
new LibAWrapper().doSomething("Hello World",....
, Platform.jar , ,