I have ported the
MovingBall example - an example showing the use of the N95 accelerometer - to Java.
It uses the tricks explained in
Using the N95 accelerometer in Java - kind of to achieve this.

As in the original example you first have to start the Python server and then you can start the MIDlet. (Don't close the server. It has to be running in the background.)
In direct comparison to the C++ counterpart you see a slightly delayed reaction to your movements. But it's still usable and still better than nothing.
Download example source and binary zip file.