[ http://jira.codehaus.org/browse/SUREFIRE-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated SUREFIRE-176: ---------------------------------- Fix Version/s: 2.3 > Classes can't find their JNI on Windows inside surefire > ------------------------------------------------------- > > Key: SUREFIRE-176 > URL: http://jira.codehaus.org/browse/SUREFIRE-176 > Project: Maven Surefire > Issue Type: Bug > Components: classloading > Affects Versions: 2.0 (2.2 plugin) > Environment: WIndows XP, JDK 1.5, ia32 > Reporter: benson margulies > Fix For: 2.3 > > > 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