-
Notifications
You must be signed in to change notification settings - Fork 233
Screen Class not found of SikuliX. #294
Comments
please be more specific:
|
Hi RaiMan,
But the problem is exe does not work for other system. And we are not getting the reason. Please help. Thanks! |
public StepReturn clickSikuli(String image){ |
I have written the above code. |
ok, understood. My guess for the reasons: Then trying to run this exe on a system never touched by normal SikuliX before, does not work, because the needed stuff cannot be exported from the sikulixapi.jar embedded inside the .exe. You might test that on your system, where the .exe works: If you know, how to get something out of the .exe, I will try to help you to get on the road. |
Yes, RaiMan, Before creating the exe, I execute the code from eclipse, its working and taking the required jar from maven repository - '.m2\repository\com\sikulix\sikulixapi\1.1.0'. The problem is, we cannot share the code with everyone, we only provide the exe to execute the test case and it does not work for clickSikuli action. So, Is the problem with Launch4j? How the exe can work for others? What could be the possible solutions? Thanks and Regards, |
I tried to execute the test case with .exe after removing the sikulixapi from maven repository and test case run without any problem. |
With removing "SikuliX stuff" I meant the folder in your application store according to If you delete at least the folder
then I guess the .exe will not work (reason see above). A quick solution can only be, to have the sikulixapi.jar on the system running the .exe somewhere and take care, that she place is on the java class path at runtime. In this case, sikulixapi.jar need not be in the .exe. Might be, that launch4j has some support for that. |
Hi RaiMan, Yes got your point. Now this is working for others also. Thanks a lot ! Regards, |
Please give me a short description of your concrete solution. Thanks. |
Actually, I just copied my auto generated 'Sikulix' folder (inside '\AppData\Roaming' folder), to the system I wanted to run the exe and it worked. |
ok, thanks. Hoped, you had a solution based on some special launch4J setup :-( ... I have it now on the list again. last question:
|
Hi RaiMan, We don't have done any implementation to secure the code in .exe. Thanks & Regards, |
I have no idea currently, sorry. I only wanted you to be aware of that. Usually people ask for the .exe variant with SikuliX scripts or programs, because they think their code would be safe against copyright violation. But principally it is not safer, as when you publish your product as a simple runnable jar file. |
Ohh, Ok.... No Problem. Thanks ! |
Hi,
com.sikulix sikulixapi 1.1.0 com.sikulix com.sikulix https://oss.sonatype.org/content/groups/public default true alwaysI am using maven in Sikuli Project. I have used following dependency and repository in Pom.xml -
Its working for me when I execute this code after creating exe of my code, actually we provide exe only to client but the problem is for Sikuli, exe is not working on other systems.
It executes only till image path but Screen class does not find.
Screen screen = new Screen();
There is no exception in the logs as well.
Kindly suggest some solutions.
Thanks & Regards,
Princi Verma
The text was updated successfully, but these errors were encountered: