How to install jinput in eclipse?

1.9k Views Asked by At

The last days I searched how to use Controllers like DS4 in java and it got me to jinput. After downloading the zip file. I added the two JARs to the project and tryed to run a test code, that I found in an installtion guide.

The problem is that it says

no jinput-dx8_64 in java.library.path".

I know there is another Thread for this problem, but I didn't understand it, maybe because of my bad English, maybe because of my knowledge. I tried to fix it by adding the directory of the files to the jre native library in eclipse, but it keeps saying the same errors.

1

There are 1 best solutions below

2
On

How to include jinput library with the natives This is only one of the many possible way of including external library


Frist you have to download the library jar Download from maven

Then you download the natives library for the desired os Download from maven

Finally you link both the library (jar) and the natives (dll for windows) in the project