Can i run Sikuli in AWS ec2-machine ? with the help of Xvfb

Asked by sk sairaj

want to automate sikuli task in the AWS-ec2 server, I know it is headless so with the help of Xvfb can I run sikuli ?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

yes is possible.

Revision history for this message
sk sairaj (sksairaj) said :
#2

Thanks for your quick response @RaiMan

I am using java 8 and using sikulixapi 1.1.0 this configuration works fine on my windows computer.

I make a jar of this maven project

In AWS-ec2 i have installed Xvfb and run
1) Xvfb :1 &
2)export DISPLAY=:1
 this two command before the jar run

Run the with the help of this command
java -Djava.awt.headless=false -jar sikuli_Automation-1.1-0614fe9.jar

ERROR
 I got tow types of Error
a) the Sikuli images is not findable by the sikuli though with the help of ls -l command i find that the image is present on the perfect location
b)[info] runcmd: lsb_release -i -r -s
*** classpath dump
  0: /home/ubuntu/TESTAUTOMATION/lib/sikuli_Automation-1.1-0614fe9.jar
*** classpath dump end
[error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/linux/libs64

( i got the error after trying to install OpenCV in Linux System)

how to fix the error is there any error for the os changes

Please note I made the sikuli_Automation-1.1-0614fe9.jar different Linux system

Revision history for this message
RaiMan (raimund-hocke) said :
#3

I am sorry, but I do not support 1.1.0 any longer, especially in such specific situations.

Try with latest 2.0.4.

Be aware: you have to provide the OpenCV libs yourself.

Revision history for this message
sk sairaj (sksairaj) said :
#4

Thanks For the Response @RaiMan

Just for clarification, I have to install Opencv in my Linux System or I can use a maven dependency?

Revision history for this message
RaiMan (raimund-hocke) said :
#5

I do not have any experience with possible Maven deps for OpenCV on Linux and how they could be used in case.

You have to ask Google ;-)

All the best.

Revision history for this message
sk sairaj (sksairaj) said :
#6

Thanks @RaiMan

Can you help with this problem?

Provide an answer of your own, or ask sk sairaj for more information if necessary.

To post a message you must log in.