How to make a runnable file with javascript webdriver and sikuli with Image

Asked by mohit singh on 2018-02-14

Hi,

Sikuli work perfectly for me , but the only problem is I'm unable to Automate the tool . My requirement is to make one executable file which contains my Images, jars, Java code and sikuli .

Pls suggest how I can able to do that.

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
mohit singh
Solved:
2018-02-22
Last query:
2018-02-22
Last reply:
2018-02-20
RaiMan (raimund-hocke) said : #1

Just construct a runnable fat jar (containing all dependencies) using Maven or Gradle or ....

mohit singh (meetmohit2101) said : #2

can you pls guide me I'm unable to make runnable fat jar

mohit singh (meetmohit2101) said : #3

for sample project :
-src
--sikuli
---sikuli.java
-image
--Capture.PNG

How can I give image path in jar :
currently I'm using
URL imageURL = sikuli.class.getResource("image" + File.separator + "Capture.PNG");

RaiMan (raimund-hocke) said : #4

what is your development environment?

URL imageURL = sikuli.class.getResource("image" + File.separator + "Capture.PNG");
will work in jar also.

You either solve your problem using the tools from comment #1 or you make a fat jar using the jar utility.
The HowTo's can be found in the net. Nothing special with SikuliX.

BTW: it is not recommended to name Java stuff sikuli or sikulix to avoid name clashes.

mohit singh (meetmohit2101) said : #5

ok Thanks (Y)