mardi 1 décembre 2015

UnsatisfiedLinkError with maven-surefire-plugin

When running a unit test with the maven-surefire-plugin, this error occures:

java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

I know how to cope with this problem in my IDE, I simply have to select the correct runtime JRE in the test's run configuration. However, when the test is run on a TeamCity build server, the error mentioned above occurs.

Is there any surefire or TeamCity option to configure the runtime JRE?

This is my current surefire configuration:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <skipTests>false</skipTests>
    <includes>
      <include>**/*Test.java</include>
    </includes>
    <parallel>methods</parallel>
    <threadCount>10</threadCount>
  </configuration>
</plugin>

Aucun commentaire:

Enregistrer un commentaire