cannot open shared object file

When I am running a jmonkey game in Netbeans I got an exception saying that cannot be found. I find some info that I can type ‘LD_LIBRARY_PATH="/opt/java/jre/lib/i386"’ to solve it. But where in netbeans should I type that? :S

The platform needs to be run with a jdk, so I don’t know why a file from jre should be referenced. Where did you get that info from? Are you running the Oracle JDK? OpenJDK will not work properly.

I got the info from here: Java issue: No such file or directory / Applications & Desktop Environments / Arch Linux Forums

As far as I know I run Oracle JDK. At least the package manger said I have it installed. Dunno really how to check what jdk you have.