Rnning JNI program in ubuntu
===

I am running my first program HelloWorld in ubntu as:

but there was an error when i tried to run it:

      Exception in thread "main" java.lang.UnsatisfiedLinkError: no foo in  java.library.path
	  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
	  at java.lang.Runtime.loadLibrary0(Runtime.java:840)
	  at java.lang.System.loadLibrary(System.java:1047)
	  at JNIFoo.<clinit>(JNIFoo.java:6)
      Could not find the main class: JNIFoo. Program will exit.

please give me a suggestion
thanks in advance

    