Hi ,
I am trying to implement clipboard functionality using the below code
Toolkit toolkit = Toolkit.getDefaultToolkit();
Clipboard clipboard = toolkit.getSystemClipboard();
StringSelection strSel = new StringSelection(strBuild.toString());
clipboard.setContents(strSel, null);
It works fine in my local environment but when i deploy the code in testing environment I get the below exception and clipboard does not work
java.awt.HeadlessException at sun.awt.HeadlessToolkit.getSystemClipboard
Please can someone help me how to proceed on this
Thanks