I used <argLine>-Djava.library.path=...</argLine> without issue with Netbeans 8 and Surefire 2.17
Arnaud 2014-07-21 22:03 GMT+02:00 Alexander <[email protected]>: > I would like to test my JAI enabled application, but seem to be getting > errors when accessing the JAI components. I suspect this is caused by the > absence of native support. I tried setting the java.library.path using > systemProperties as well as argLine, however none of these options result > in the change appearing in the surefire report. > > pom.xml > ------- > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.17</version> > <configuration> > <argLine>-Djava.library.path=/usr/lib64/sun-jai-bin/</argLine> > </configuration> > </plugin> > > surefire-report > =============== > <property name="java.library.path" > > value="/opt/oracle-jdk-bin-1.8.0.11/jre/lib/amd64:/opt/oracle-jdk-bin-1.8.0.11/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib"/> > > I am using netbeans (v8) and surefire 2.17. > > Thanks > Alex > >
