[1.0.1] after Sikuli added libs folder to system path, you have to logout/login to activate it

Asked by rita

during running:
from jpype import *
JVM = 'C:\\Java\\jdk1.7.0\\jre\\bin\\client\\jvm.dll'
startJVM(JVM, '-ea',"-Djava.class.path=C:\\SikuliX\\sikuli-java.jar")
sikuli = JPackage("org.sikuli.script")
v=sikuli.Pattern("i.png")

works fine with previous version
but with current:
error:
[error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: C:\SikuliX\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.

Question information

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

the path has been added to system path, now you have to:

Logout and Login again! (Since libs folder is in user's path, but not activated)

Revision history for this message
rita (fanrita) said :
#2

What is mean login and logout? I do not use Sikuli IDE....

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

logout from your Windows session and login again (or reboot)

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#4

> What is mean login and logout? I do not use Sikuli IDE....

It's not about IDE, it's about setup.
RaiMan talks about you logging out of Windows and logging back.
For me it worked simpler, I changed PATH with Rapid Environment Editor and re-launched my file manager I used to call the shell from.
This way or that you have to
1) Use "echo %path%" command to see if the required Sikuli folders are in PATH now.
2) If not, you have to reload your command shell (what can be done by logging out your user to Windows login screen and then login back).

Revision history for this message
Nicholas Ward (nicholas-ward-8) said :
#5

So I am still seeing this issue even after logging out and logging back in. I created a new project in the same workspace and included the sikuli-jar file the same way I was in my main project and I don't receive this error. I have checked my system path and I see the libs location in it. Unsure how to proceed.

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#6

Let's try to visualize that.

http://www.rapidee.com/en/download - here you find Rapid Environment Editor. Install and launch it, then take screenshot from PATH in System variables pane, then PATH in user variables pane (if any), and finally screenshot of a terminal windows after the "echo %PATH%" command.

Then upload screenshots to the whatever image hosting do you prefer (if none, you may use tinypic.com).

Here are the examples of what I'd like to see from you:
http://i43.tinypic.com/14c7fjd.png (REE screenshot part)
http://i39.tinypic.com/anzotg.png (cmd screenshot part) .

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#7

My current setup doesn't have any PATH in the user variables, but yours may have, so look there too. And feel free to wipe out any of paths that contain your username or what, only Sikuli paths are what matters now.

Revision history for this message
rita (fanrita) said :
#8

Now, I cannot find sikuli-java.jar in https://launchpad.net/sikuli/+download (link from http://www.sikuli.org/download.html)

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

download and run setup again

Revision history for this message
rita (fanrita) said :
#10

Thanks,
Reboot solved this issue

Revision history for this message
rita (fanrita) said :
#11

thanks

Revision history for this message
徐女士 (anne1) said :
#12

how to reboot,reboot what?@rita..can you give me some details?

Revision history for this message
徐女士 (anne1) said :
#13

please

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

restart your windows

Revision history for this message
徐女士 (anne1) said :
#15

Roman Podolyan (podolyan-roman) could you give me screenshoots of steps,how to edit it? when i download it in different dirs,it will display "checkLibsDir: libs dir is not on system path: E:\PC_xm\lib\libs" , how to solve it forever and completely?

Revision history for this message
徐女士 (anne1) said :
#16

@Roman Podolyan (podolyan-roman) could you give me screenshoots of steps,how to edit it? when i download it in different dirs,it will display "checkLibsDir: libs dir is not on system path: E:\PC_xm\lib\libs" , how to solve it forever and completely?

Revision history for this message
Roman Podolyan (podolyan-roman) said :
#17

@徐女士 (anne1)

You run Windows, don't you?
If so, use the software I recommended above, Rapid Environment Editor.
Install and run it.
Find Path variable among system variables (sort of screenshot is here: http://www.rapidee.com/en/path-variable )
Right-click it to invoke menu (screenshot of menu is here: http://www.rapidee.com/en/screenshots )
Choose "Add value", string value, and add your directory path "E:\PC_xm\lib\libs"