← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #679058]: Trying to get sikuli java-scripts running on Ubuntu through jenkins-maven

 

Question #679058 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679058

VJ posted a new comment:
Fixed our Jenkins job and finally got 1.1.4 jar in the class path, below
is the class path:

[DEBUG] test(compact) classpath:  test-classes  classes  junit-3.8.1.jar
testng-6.14.3.jar  jcommander-1.72.jar  bsh-2.0b6.jar  selenium-
java-3.141.59.jar  selenium-api-3.141.59.jar  selenium-chrome-
driver-3.141.59.jar  selenium-edge-driver-3.141.59.jar  selenium-
firefox-driver-3.141.59.jar  selenium-ie-driver-3.141.59.jar  selenium-
opera-driver-3.141.59.jar  selenium-remote-driver-3.141.59.jar
selenium-safari-driver-3.141.59.jar  selenium-support-3.141.59.jar
byte-buddy-1.8.15.jar  commons-exec-1.3.jar  guava-25.0-jre.jar
jsr305-1.3.9.jar  checker-compat-qual-2.0.0.jar
error_prone_annotations-2.1.3.jar  j2objc-annotations-1.1.jar  animal-
sniffer-annotations-1.14.jar  okhttp-3.11.0.jar  okio-1.14.0.jar
selenium-server-3.141.59.jar  jcip-annotations-1.0.jar  jetty-
repacked-9.4.12.v20180830.jar  javax.servlet-api-3.1.0.jar
snakeyaml-1.19.jar  json-simple-1.1.1.jar  org.apache.commons.io-2.4.jar
commons-io-2.4.jar  sikulixapi-1.1.4-SNAPSHOT.jar  surefire-testng-
utils-2.16.jar  surefire-grouper-2.16.jar

but still I am getting Initialization error while creating Pattern
object below are the details:

Code:
import org.sikuli.script.Pattern;
public static final Pattern image = new Pattern(pathToImagesfolder + "loginimage.png").similar(0.1f);

Error:
FAILURE!
java.lang.ExceptionInInitializerError: null
	at org.sikuli.script.RunTime.libsExport(RunTime.java:880)
	at org.sikuli.script.RunTime.libsLoad(RunTime.java:783)
	at org.sikuli.script.RunTime.loadLibrary(RunTime.java:987)
	at org.sikuli.script.Finder2.<clinit>(Finder2.java:35)
	at org.sikuli.script.Pattern.<init>(Pattern.java:123)
	at main.java.apps.login.LoginPage.<clinit>(LoginPage.java:22)
	at main.java.apps.login.Login.enter_credentials(Login.java:35)
	at test.java.tests.login.TestLogin.test_login_with_valid_credentials(TestLogin.java:31)

Results :

Failed tests: 
  TestLogin.test_login_with_valid_credentials:31 » ExceptionInInitializer

Unsure why ? even after the jar present in the classpath still it is
failing...

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