How do I get it to find jinput on Linux?

I want Jinput to work on GNU/Linux (Ubuntu) but it doesn’t work :’( I have tried to set paths and such in Eclipse but nothing helps. In the “Getting started with JInput” topic it say something about java.library.path. I’m not sure if I get it but I have tried to use System.load() but I always get UnsatisfiedLinkError. If I only try to use it anyway I get

[quote]java.lang.NoClassDefFoundError: net.java.games.input.ControllerEnvironment
[/quote]
It has been working before on Windows but then I was changing some settings in Eclipse and put all the files in the same folder as my other files. I think it was more luck than anything else that it worked then. Do someone know what is my problem? :persecutioncomplex:

The error you quote there is because the jinput jar is not in your classpath, rather than the native libs being missing, just add it to the build path in the eclipse project.

HTH

Endolf