Java and C ++ shared memory

I have C ++ code that creates shared memory. Is it possible to write Java code that can read the memory created by C ++ code, except for using JNI. By the way, I am using Windows.

+8
java c ++ shared-memory jni ipc
source share
2 answers

See MappedByteBuffer. This is the standard Java class for reading and writing shared memory. I use it a lot. Yes, you can use this to communicate with any program written in any language that uses shared memory, and all this is very standard Java, not JNI.

+3
source share

Yes, you can use project code: project code

+1
source share

All Articles