0

I'm developing a game in Java (8) using Intellij Idea. Since I need controller support (XBox Controllers and the like), I seems the JInput library would help me support that.

I added the net.java.jinput:jinput:2.0.6 library via maven (project structure > libraries), but when I run it, I get the following:

WARNING: Attempting to use default windows plug-in.
java.lang.UnsatisfiedLinkError: no jinput-dx8 in java.library.path

I did some googling and fiddled around with it but I'm not able to get this working.

Petter Thowsen
  • 1,697
  • 1
  • 19
  • 24
  • Possible duplicate of [Java error - cannot find library in java.library.path?](http://stackoverflow.com/questions/7195778/java-error-cannot-find-library-in-java-library-path) – Tom Sep 30 '15 at 23:41

2 Answers2

2

I found an answer here: http://wiki.lwjgl.org/wiki/Setting_Up_LWJGL_with_IntelliJ_IDEA

Basically, you create a folder called 'lib' in the project root, then put all the native DLL's there. Finally, you add -Djava.library.path=lib/ to the VM options in the run configuration.

Petter Thowsen
  • 1,697
  • 1
  • 19
  • 24
0

If you are still confused, here is another description of the method to download and link DLLs for JInput

J.E.Tkaczyk
  • 557
  • 1
  • 8
  • 19