Unable to execute Sikuli Script

Asked by Abilash Babu

I have installed Sikuli, when I run my Script, I am getting following error

Jan 29, 2014 4:19:50 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: C:\Users\abilash_babu\Desktop\Abilash\SikuliTest\lib\libs
[action] ResourceLoaderBasic: checkLibsDir: Please wait! Trying to add it to user's path
[info] runcmd: reg QUERY HKCU
[info] runcmd: reg QUERY HKEY_CURRENT_USER\Environment /v PATH
[error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated)
[error] Terminating SikuliX after a fatal error! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.

Please help me out on this. I have installed Sikuli in user writtable folder. I have given path and Sikuli Home in Environmental variables

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

WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

ignore this for now, not the cause for the problem (are you using Windows 8 ??)

DO NOT set environment variables yourself:
no SIKULI_HOME or SIKULIX_HOME
no path entry for any Sikuli stuff

purge everything in the settings related to Sikuli and reboot.

Now run SikuliX again.

You will probably get the above note again:
[error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated)

So just do what SikuliX is trying to tell you ;-)
- log out of your session and login again to refresh the environment
(or reboot if you like).

Can you help with this problem?

Provide an answer of your own, or ask Abilash Babu for more information if necessary.

To post a message you must log in.