Classes can't find their JNI on Windows inside surefire -------------------------------------------------------
Key: MSUREFIRE-187 URL: http://jira.codehaus.org/browse/MSUREFIRE-187 Project: Maven 2.x Surefire Plugin Issue Type: Bug Components: classloading Affects Versions: 2.2 Environment: WIndows XP, JDK 1.5, ia32 Reporter: benson margulies When run inside of surefire, my unit tests can't find their JNI. When run outside of surefire, all is well. I have the necessary settings arranged via the configuration, but no joy. The debug trace shows the right settings for classpath, java.library.path, and PATH. Indeed, I created a shell script that just runs junit.textui.TestRunner with the same parameters (but none of surefire) and it works just fine. [DEBUG] Setting system property [java.library.path]=[c:/x/rlp53/rlp/bin_g/ia32-w32-msvc71] [DEBUG] Setting system property [bt.rlp.root]=[c:/x/rlp53/rlp/] [DEBUG] Setting system property [localRepository]=[c:/x/rlp53/rnm/source/index_ws/m2] [DEBUG] Setting system property [basedir]=[c:\x\rlp53\rnm\source\index_ws] [DEBUG] Setting environment variable [PATH]=[c:\x\rlp53\rlp\bin_g\ia32-w32-msvc71;c:\vs2003\Common7\IDE;c:\vs2003\VC7\BIN;c:\vs2003\Common7\Tools;c:\vs2003\Common7\Tools\bin;c:\vs2003\SDK\v1.1\bin;c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;c:\vs2003\Common7\IDE;c:\vs2003\VC7\BIN;c:\vs2003\Common7\Tools;c:\vs2003\Common7\Tools\bin;c:\vs2003\SDK\v1.1\bin;c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6\bin;c:\jdk1.5.0_09\bin;c:\Perl\bin\;c:\Python24\;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Microsoft SQL Server\80\Tools\Binn\;c:\Program Files\Perforce;c:\Program Files\cvsnt;C:\cygwin\usr\X11R6\bin;C:\cygwin\usr\X11R6\bin;C:\cygwin\lib\lapack] I have not built an isolated test case, but I could if that would help someone understand this. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira