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?

  • my first guess is a misconfiguration in your local X server, since that's getting the click events first. can you connect to the linux box (eg, via VLC) and see the right-click working there? – quack quixote Oct 19 '09 at 17:10
  • Yes, right click works on Linux – nathan Oct 19 '09 at 17:14
  • are you starting Xming with the -multiwindow option? – quack quixote Oct 19 '09 at 17:29
  • The -multiwindow allowed me access to the right click and file menu, but only until I move the window. Once the java application's window is moved, then there is no way to left or right click menu items on the application. – nathan Oct 20 '09 at 12:50

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.


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

  • the quote from the forum is "incorrect insets detection when using the Xming", which doesn't necessarily imply it's Xming doing the incorrect detection. sounds like it's a bug in Swing. good job finding the workaround, +1! – quack quixote Oct 20 '09 at 14:07
  • Good point. I'll correct my quote and reword to not put Xming at fault. – nathan Oct 20 '09 at 14:24
  • So, this seemed to solve the problem for a while for me too, however, I'm now faced with another problem, I sometimes get some sort of keyboard focus/event problem, I can't type in my textboxes and such until i change the focuse to another window and back... anyone run into this ? – Nico Jun 29 '10 at 15:52
  • 1
    @nathan The given link page not found. (java.net/jive/thread.jspa?threadID=62022&tstart=0) any alternate link? – Sridhar Jan 7 '15 at 12:26
  • @Sridhar I updated the link. – nathan Mar 30 '15 at 15:28

I also had errors in our Solaris 11 server to Windows 7 desktop using Xming. We were installing some Oracle (Java) apps on the Solaris 11 server and we had issues with XMing with input field becoming uneditable at random times. We tried so many parameter changes and nothing worked (not even a corporate license of Exceed, but that was another issue). We tried using MobaXterm and that worked well and allowed us to do our Oracle installs without issue.


Have you tried this other XServer tool?


I used to have issues with XMing, this one is not only faster, but solved some of those issues for me (input field becoming uneditable among them).

I'm using the free 6.2 portable version. Make sure you start your session from inside the GUI, this way you don't even have to export the display.

I hope this helps!


I had exactly the same problem with Xming and a remote Java application installer on CentOS 6.9. When I used Xlaunch and selected the "Multiple windows" mode and no access control - I was unable to click on text fields in the UI. The Xming command from the log was:

Xming :0 -multiwindow -clipboard -ac 

However I just found that if I used "One window" mode then I was able to click on text fields and edit content :)

Xming :0 -clipboard -ac 

I recommend you try this for the problem you faced (unless you have already switched over to mobaxterm). I am happy to have a workaround that works but still curious to know the root cause and if its possible to fix this for multiwindow mode. I did try AWT_TOOLKIT=MToolkit but this made no difference for me in multiwindow mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.