Windows 7 Administrator Account - Can't Find Dependent Libraries

Asked by Lebron Jones

I'm trying to run Sikuli on the administrator account on Windows 7. It seems to work fine in a regular user account (i tested one with admin privileges, anyways). However, when it comes to the Administrator on the machine, it returns the following error from the IDE:

[error] Error message: Traceback (most recent call last):
 File "", line 1, in
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\__init__.py", line 3, in
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 26, in
java.lang.UnsatisfiedLinkError: C:\Program Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
(...snipping out the million different tracebacks)
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Program Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries"

If I run it from the command line, I get "java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Users\Administrator\AppData\Local\Temp\tmplib\win32Util.dll: Can't find dependent libraries" at the end instead.

I tried changing the sikuli-ide.bat file to specify the paths, so it looks like this:

@echo off

PATH=%PATH%;%~d0%~p0libs
set JAVA_EXE="java"
if defined PROGRAMFILES(X86) set JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\java.exe"
%JAVA_EXE% -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.path="C:\Program Files\Sikuli X\sikuli-script.jar/" -jar "C:\Program Files\Sikuli X\sikuli-ide.jar" %*

But that didn't help. My environment variables are as follows:
User Variables for Administrator:
path = C:\Program Files\Sikuli X\libs;C:\Program Files\Java\jre6\\bin
sikuli_home = C:\Program Files\Sikuli X\
temp = %USERPROFILE%\AppData\Local\Temp
tmp = %USERPROFILE%\AppData\Local\Temp

System Variables:
...
Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
...

I edited the system path to be "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Sikuli X\libs\;C:\Program Files\java\jre6\bin" but that didn't change anything.

I assume the problem lies somewhere in the fact that this is the administrator account. And I absolutely have to be the Administrator, since I'll be using some remote access which can't work with any other account. Has anyone else run into this problem before?

Question information

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

Since the path settings seem to be ok, the only idea I have is about some weird access violations.

Did you try to install Sikuli under the Admin account?

Revision history for this message
Lebron Jones (m8r-0kecvs) said :
#2

I thought so, but I reverted the VM and did a couple of things differently. Between them all, it seems to be fixed:

After creating the Administrator account, I logged in, waited for about 5 minutes, then reset the computer. Twice. Just to make sure Windows had done whatever prereqs it needs to to setup account settings.

Installed Java on the Admin account. Reset 5 minutes after completion.

Installed Sikuli on the Admin account. Reset 5 minutes after completion.

Let Java auto-update (it was apparently a version or two out of date). Reset 5 minutes after completion.

After all that, it seems like its working. I personally think the biggest change was logging in after the account had been enabled and logging out a couple of times. Regardless though, I may have forgotten to install it on the correct account.

As an aside - RaiMan, thank you so much for your tireless effort on this site. I've been messing with sikuli for a couple weeks, and it seems every question is addressed by you within a few hours. Its remarkable. Thank you so much.

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

Thanks for your feedback. I really appreciate it.