On Mon, Nov 3, 2008 at 9:40 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> I was (eventually, with help from Craig and Henri,) able to follow the
> JNI 'Hello World' example [1] and get it to work both at the command
> line and in a test run with Maven.

...but it only works if the library is sitting in the base directory
of the Maven project.  If I move it into some other directory and then
configure Surefire to pass java.library.path to the tests, I get the
same thing Craig was seeing:

java.lang.UnsatisfiedLinkError: no HelloWorld in java.library.path

with

      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
        <systemProperties>
            <property>
              <name>java.library.path</name>
              <value>${basedir}/lib</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to