Can't copy to a clipboard from a background java application on MAC OSX

寵の児 提交于 2019-12-02 00:45:59

Don't.

What you are doing is generally referred to as "interprocess communication". There are various strategies to accomplish this. One of the more 'correct' approaches, in your cotext of two Java applications, would be to use Java RMI.

Doing it in a non-standard, "hackish" manner like you are with the clipboard is more problematic...as you have discovered the hard way.

Even if you did manage to get it running, the possibilities of problems in the future are high. E.g.: Imagine a Windows update changing the behavior of the clipboard--it would break your app on Windows.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!