Java – Troubleshooting Remote Display Issues on Windows and Linux

javalinuxwindowsxmingxorg

I'm trying to remote display Java based development environments, such as NetBeans and IntelliJ, from a linux machine to a windows machine. When I do this, the right click functionality of the environments does not work, which makes them unusable.

I use the -X option with Putty to tunnel X through SSH. I've repeated this using Ubuntu and RedHat to my Windows running Xming. Is there a trick to remote Xing java applications that I'm missing?

Best Answer

From this post on the java.net forums it seems that there are "incorrect insets detection when using the Xming". The fix is to set the AWT_TOOLKIT environment variable. Explanation for why can be found on Sun's page here.

AWT_TOOLKIT=MToolkit

Setting this environment variable fixed all problems. Update: The link containing the original link has changed. See here.

Related Question