Is there a "best practice" for accessing another process in the OS via java?

I read Skype4Java (java api for skype) and noticed that they use jni to access the skype client.

intuitively, I assume that java already has a standard library that has an OS-sensitive jn implementation for accessing other processes. I set it up to search, but could not find it.

Is there such a library? if not, is there a best practice for accessing another process in os, and not necessarily for the skype client?

+3
source share
4 answers

I think that perhaps you need to define what “access” means. If you're talking about plain old inter-process communication, then sockets or JNI is your best bet.

Garth - MMF IPC C, , Java MMF . , , ...

, , - , , . , Java: -)

+1

Java 1.4, . . Java.nio.MappedByteBuffer.

+4

This is not exactly what you are looking for, but it will probably help a lot nonetheless: Java Native Access project on java.net.

+1
source

Do not forget the sockets ...

+1
source

Source: https://habr.com/ru/post/1697806/


All Articles