No X11 DISPLAY variable was set. How to get data from clipboard in linux with java?

后端 未结 0 627
后悔当初
后悔当初 2020-12-28 21:30

I try to get data from the clipboard and try to use follow code:

public static String getValueFromClipboard() {
      Clipboard c = Toolkit.getDefaultToolkit(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题