← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #701193]: Error with runnable fat jar outside of IDE

 

Question #701193 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/701193

Description changed to:
Hi all,

When I export as a fat jar and run on another Win10 PC with Java
installed I get the following error when I use screen.exist, hover,
click etc

java.lang.UnsatisfiedLinkError: 'long org.opencv.core.Mat.n_Mat()'

Pom is below. Just wondering if you have seen this before or have any
suggestions? Note I'm running 2.0.4 because 2.0.5 has an issue locating
images embedded in the jar

Thanks in advance

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.rnimbin.autotest</groupId>
  <artifactId>DailyChecks</artifactId>
  <version>0.0.1-SNAPSHOT</version>

<properties>
  <selenium.version>3.13.0</selenium.version>
  <testng.version>7.4.0</testng.version>
  <maven.compiler.version>3.7.0</maven.compiler.version>
  <maven.compiler.source>1.8</maven.compiler.source>
  <maven.compiler.target>1.8</maven.compiler.target> 
</properties>

<dependencies>
  <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>${selenium.version}</version>
  </dependency>
  <dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>${testng.version}</version>
  </dependency>
  <dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>4.0.6</version>
  </dependency>
  <dependency>
    <groupId>com.sikulix</groupId>
    <artifactId>sikulixapi</artifactId>
    <version>2.0.4</version>
  </dependency>
  <dependency>
    <groupId>com.sun.mail</groupId>
    <artifactId>javax.mail</artifactId>
    <version>1.6.2</version>
  </dependency>
  <dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.17.2</version>
  </dependency>
</dependencies>

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-shade-plugin</artifactId>
      <version>3.3.0</version>
      <configuration>
      </configuration>
      <executions>
        <execution>
          <phase>package</phase>
          <goals>
            <goal>shade</goal>
          </goals>
          <configuration>
            <transformers>
              <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                <mainClass>utils.MainClass</mainClass>
              </transformer>
            </transformers>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>
  
</project>

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.