I need to get the x and y coordinates of the mouse anywhere on the screen. I would upgrade my java to 1.5 (and use MouseInfo) but im working on a school computer that wants me to be a administrator to install the new java. Is there a way to install java on a locked computer?

I read here http://mindprod.com/jgloss/mouse.html that you can incorparate c++'s code. I dont know how to do this, and I dont know c++. If any one has code for this could you please show me it.