NullPointerException at net.java.games.util.plugins.Plugins.scanPlugins

Hello.
I had dowanloaded sources from jinput.java.net; built it on linux with java 1.7.
libjinput-linux.so i’d copied to /usr/lib

When i connect jinput.jar to the project without any code - it crashes with:


Exception in thread "main" java.lang.NullPointerException
	at net.java.games.util.plugins.Plugins.scanPlugins(Plugins.java:78)
	at net.java.games.util.plugins.Plugins.<init>(Plugins.java:73)
	at net.java.games.util.plugins.test.PluginTest.<init>(PluginTest.java:85)
	at net.java.games.util.plugins.test.PluginTest.main(PluginTest.java:112)

What is wrong? :’(

Hi

Don’t copy the .so file into this directory, you just need to put it into the Java library path and jnput.jar must be in the classpath. I think that the directory “test_plugins” is not found. I use a source code a bit more recent than you: