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.
Tim cooper
source share