Is there a lightweight open source library that would allow me to get PS3 controller input and use it in a program (for OS X and Windows) that I am writing in Java? The alternatives I were looking at were SDL and OIS, but they aren't coded in Java so I would have to write a Java wrapper.
After doing a little research I found a good library I could use called jinput. http://yaolddawg.blogspot.com/2011/08/configure-open-source-controller-jinput.html This tutorial helps you install it and start up a basic programming. I used this tutorial to install Jinput but ended up not using the library that the author offers.
For using netbeans if you get stuck at the step where you have to add the .jnilib put the file path in the virtual machine options under right click your project >project > run.Then add something like this