mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Pearce <...@google.com>
Subject Re: Pb when running tests on sshd (trunk)
Date Mon, 04 Jan 2010 13:13:29 GMT
Emmanuel Lecharny <elecharny@gmail.com> wrote:
> I get this error on Mac OSX, Java 1.6.0_17 :
>
> Tests in error:
>  testAgent(org.apache.sshd.AgentTest)
>
> -------------------------------------------------------------------------------
> Test set: org.apache.sshd.AgentTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009  
> sec <<< FAILURE!
> testAgent(org.apache.sshd.AgentTest)  Time elapsed: 0.006 sec  <<< ERROR!
> java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path, no  
> libtcnative-1 in  

You have to download and install the Tomcat native library [1].
On my Linux desktop I had to inject the library into my JVM via a
wrapper script for Maven:

  #!/bin/sh
  export JAVA_HOME=/usr/lib/jvm/java-6-openjdk &&
  export LD_LIBRARY_PATH=/home/sop/sw-tcnative1.1.18/lib &&
  exec mvn "$@"

[1] http://tomcat.apache.org/native-doc/

Mime
View raw message