I'm really confused by this. When I run this program in VMWare running windows 7, with the mouse cursor over a particular application, nothing happens. In all other situations, the program clicks the mouse when you run it (when the mouse isn't over the application in the virtual machine, when used anywhere outside of the virtual machine).
What could be causing this? How can a Java generated mouse click consistently not work when a manual click does work? Are there any workarounds that might bypass whatever is going on here?