Include the jni path /usr/lib/jni on the library search path.

Index: libnb-platform-java-7.0+dfsg1/o.n.bootstrap/launcher/unix/nbexec
===================================================================
--- libnb-platform-java-7.0+dfsg1.orig/o.n.bootstrap/launcher/unix/nbexec	2011-04-08 00:33:00.000000000 +0100
+++ libnb-platform-java-7.0+dfsg1/o.n.bootstrap/launcher/unix/nbexec	2011-06-12 21:16:28.031368069 +0100
@@ -180,7 +180,7 @@
 fi
 
 # if heap dump on OOME is supported enable it
-if "${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError > /dev/null 2>&1 ; then
+if "${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError &> /dev/null 2>&1 ; then
    jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError"
    if echo $jargs | grep -v -- "-XX:HeapDumpPath=" > /dev/null ; then
       jargs="$jargs -XX:HeapDumpPath=\"${userdir}/var/log/heapdump.hprof\""
@@ -541,7 +541,7 @@
     #
     delete_new_clusters_file
     rm -f "${restart_file}"
-    eval ${_NB_PROFILE_CMD} "\"${jdkhome}/bin/java\"" -Djdk.home="\"${jdkhome}\"" -classpath "\"$cp\"" \
+    eval ${_NB_PROFILE_CMD} "\"${jdkhome}/bin/java\"" -Djdk.home="\"${jdkhome}\"" -Djava.library.path="/usr/lib/jni" -classpath "\"$cp\"" \
         "$jargs" org.netbeans.Main "$args" '<&0' '&'
     PID=$!
     trap "kill $PID" EXIT
