hmm...the only way i coudl get any of the examples to work in Intellij was to copy those files to the system directory. im not using the -D command at all....i press play and it runs, i really dont like compiling and running from the command line.
Intellij allows you to pass command line parameters to the JVM via the project settings. This will allow you to place the native libraries in a directory other than the system directories and pass the '-Djava.library.path=<path>' option to the JVM every time you execute from within the IDE. In case you don't have any documentation or help files for Intellij locally, a quick Google turned this up
As a software developer, if you can't figure out how to do something with your tools always consult the product documentation first. It will usually save you time and headaches.