[1.0] Windows: Eclipse: Error: Native library could not be loaded: VisionProxy

Asked by Elias Nogueira

*** solution ----------------------------------------------

look: https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming

---------------------------------------------------------------

I know that could be a duplicate question, but none of the questions that I've searched solved my problem.
I created a simple script using the following:
 - JDK 1.7.0_05
 - Sikuli 1.0.0-Win64 on C:\ folder
 - Eclipse to create a Java class
 - SIKULI_HOME poiting to C:\Sikuli 1.0.0-Win64
 - Windows 7 64bit

All the time when I execute the class I got the errro:
[error] org.sikuli.script.FileManager.loadLibrary: Native library could not be loaded: VisionProxy
[error] Since native library was found, it might be a problem with needed dependent libraries
java.lang.UnsatisfiedLinkError: C:\Sikuli-IDE-1.0.0-Win64\libs\VisionProxy.dll: Can't find dependent libraries

I've tried many things and nothing works =/

Any ideas?
Best regards!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Elias Nogueira
Solved:
Last query:
Last reply:
Revision history for this message
Elias Nogueira (elias-nogueira) said :
#1

An update...
I created the same test on a MacOSX 10.8.4 and it worked!

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

the %SIKULI_HOME% folder should not have blanks.

see bug 1183286

Revision history for this message
Elias Nogueira (elias-nogueira) said :
#3

Hello RaiMan,
Thanks for your repply!

I changed the folder name to not have blanks, but the same error occurs :(
Any another ideias?

I don't know if this is relevant , but the Windows 7 is a virtual machine running into Parallels on a MacOSx

Best regards!

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

Uuups, sorry for not having asked: (the blank in the folder name caught my first attention ;-)

Do you have
%SIKULI_HOME%\libs

in system path at runtime?

Revision history for this message
Elias Nogueira (elias-nogueira) said :
#5

Hello RaiMan!
I don't have the %SIKULI_HOME%\libs in the system path.
After add this the script worked well :D

But it made me think if it's not necessary provide this information in http://doc.sikuli.org/faq/030-java-dev.html#make-the-native-libraries-available ;-)

Thanks for your response and solve my problem :-)

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

Thanks for the hint.

As mentioned in the release note: docs will only be revised during the next month, to be up to date until version 1.1

Your usage case is currently documented here:
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming