Hi
I was right, thats not the code you are running, the code you are running has the comments in :), ok, if kb.poll() is causing the null pointer then I guess kb is null. That means it’s not found a controller of type KEYBOARD (looking at your constructor). How many controllers are listed when you dump cont.length?
It looks like it is due to the plugins code. the linux.jar should be in a directorycalled controllers that is located from where you are running. Either that, or you can specifiy the class to use for the environment with the property jinput.plugins and use the classname of the plugin, in this case net.java.games.input.LinuxEnvironmentPlugin. But by default the controllers directory is scanned for any plugins so you should use that ideally.
HTH
Endolf