Jinput in Eclipse

Hi,

I’ve read the tutorial in this forum and managed to run
ant listControllers
ant controllerDetails -Dcontroller=
ant pollController -Dcontroller= -Daxis=

in DOS. I found my keyboard, my mouse and my joystick info.

But now I want use Jinput in Eclipse. I’ve imported the project found in jiputTutorialOne-1-0 into my workspace in Eclipse and I’ve tried to run listContrller, controllerDetails and pollController without any success.

When I printed out controllers.length I got 0.

Does anyone know how to solve this problem??

Thanx