← Back to team overview

sikuli-driver team mailing list archive

[Question #264256]: Win 7 -> SikuliX 1.1.0 -> Pack 2: path to libs

 

New question #264256 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264256

Hello,

Just tried the latest build SikuliX 1.1.0 Pack 2 (Java API) and it seems to work. But there is one thing I wanted to understand: why doesn't setup procedure specify a path to the libs folder (C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixLibs_201503271506 ) in environment System Path or User Path variables, and how does Java code find those libs then?

The reason I ask this question is the following: on the same machine, I am using  very old 1.0 RC3 Sukuli version and just wanted to be sure the new jar is using new libs folder, not the old one. After the setup has been finished, I took a look at User Path environment variable and found out a path for "old" libs only, not "new" ones.

Note: I am not going to mix 1.0 RC3 and 1.1.0 in my production environment, I just run some tests with new Sikuli to see if the code that works with 1.0 RC 3, works with 1.1.0, as well.

Below is the setup log.

Thanks,
Cforest

[debug (3/27/15 6:21:05 PM)] Debug: setLogFile: C:\YK\NewSikuli\SikuliX-1.1.0-SetupLog.txt
[debug (3/27/15 6:21:05 PM)] RunSetup: ... starting with no args given
[debug (3/27/15 6:21:05 PM)] RunSetup: Setup: 1.1.0 2015-03-26_01:00nightly in folder:
C:\YK\NewSikuli
[debug (3/27/15 6:21:05 PM)] RunSetup: RunningSystem: Windows 6.1
[debug (3/27/15 6:21:05 PM)] RunSetup: parent of jar/classes: C:\YK\NewSikuli
[debug (3/27/15 6:21:05 PM)] RunSetup: RunningJava: Java 7 (x86) 1.7.0_65-b20
[debug (3/27/15 6:21:05 PM)] init user preferences
[debug (3/27/15 6:21:43 PM)] RunSetup: 
popAsk: --------------------
The following file(s) will be downloaded to
C:\YK\NewSikuli
--- Native support libraries for Windows (sikulixlibs...)
--- Package 2 ---
sikulixsetupAPI-1.1.0-20150327.141726-17-forsetup.jar (Java API)
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (3/27/15 6:21:53 PM)] FileManager: Downloading maven-metadata.xml having 0 KB
[debug (3/27/15 6:21:53 PM)] RunSetup: getMavenJar: sikulixlibswin-1.1.0-20150327.140803-93.jar
[debug (3/27/15 6:21:53 PM)] FileManager: Downloading sikulixlibswin-1.1.0-20150327.140803-93.jar having 10577 KB
[debug (3/27/15 6:22:14 PM)] FileManager: downloaded 10577 KB to:
C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixDownloads_201503260100\sikulixlibswin-1.1.0-20150327.140803-93.jar
[debug (3/27/15 6:22:14 PM)] FileManager: download time: 20
[debug (3/27/15 6:22:18 PM)] RunSetup: Copied from Downloads: sikulixlibswin
[debug (3/27/15 6:22:18 PM)] FileManager: resetFolder:
C:\Users\Admin2\AppData\Roaming\Sikulix\sikulixlibs\windows
jar:file:/C:/YK/NewSikuli/sikulixlibswin.jar
[debug (3/27/15 6:22:18 PM)] FileManager: Downloading maven-metadata.xml having 0 KB
[debug (3/27/15 6:22:18 PM)] RunSetup: getMavenJar: sikulixsetupAPI-1.1.0-20150327.141726-17-forsetup.jar
[debug (3/27/15 6:22:19 PM)] FileManager: Downloading sikulixsetupAPI-1.1.0-20150327.141726-17-forsetup.jar having 1892 KB
[debug (3/27/15 6:22:23 PM)] FileManager: downloaded 1892 KB to:
C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixDownloads_201503260100\sikulixsetupAPI-1.1.0-20150327.141726-17-forsetup.jar
[debug (3/27/15 6:22:23 PM)] FileManager: download time: 3
[debug (3/27/15 6:22:26 PM)] RunSetup: Copied from Downloads: sikulixapi
[debug (3/27/15 6:22:26 PM)] FileManager: resetFolder:
C:\Users\Admin2\AppData\Roaming\Sikulix\Lib
jar:file:/C:/YK/NewSikuli/sikulixapi.jar
[debug (3/27/15 6:22:26 PM)] RunSetup: Download ended
[debug (3/27/15 6:22:26 PM)] RunSetup: Downloads for selected options:
sikulixsetupAPI-1.1.0-20150327.141726-17-forsetup.jar 
[debug (3/27/15 6:22:26 PM)] RunSetup: Download page: http://nightly.sikuli.de/
[debug (3/27/15 6:22:26 PM)] RunSetup: adding needed stuff to sikulixapi.jar
[debug (3/27/15 6:22:26 PM)] FileManager: buildJar: sikulixtemp.jar
[debug (3/27/15 6:22:26 PM)] FileManager: buildJar: adding: sikulixapi.jar
[debug (3/27/15 6:22:27 PM)] FileManager: buildJar: adding: sikulixlibswin.jar
[debug (3/27/15 6:22:32 PM)] FileManager: buildJar: adding sikulixcontent at sikulixlibswin
[debug (3/27/15 6:22:32 PM)] FileManager: buildJar: adding sikulixcontent at Lib
[debug (3/27/15 6:22:32 PM)] FileManager: buildJar: completed
[debug (3/27/15 6:22:32 PM)] RunSetup: renaming sikulixtemp.jar to target jar: sikulixapi.jar
[debug (3/27/15 6:22:32 PM)] RunSetup: Trying to run functional test: JAVA-API
[debug (3/27/15 6:22:32 PM)] RunTimeSETUP: addToClasspath:
file:/C:/YK/NewSikuli/sikulixapi.jar
[debug (3/27/15 6:22:32 PM)] RunSetup: trying to run org.sikuli.script.Sikulix.testSetup()
[debug (3/27/15 6:22:32 PM)] RunSetup: class found: class org.sikuli.script.Sikulix
[debug (3/27/15 6:22:32 PM)] RunSetup: getMethod: public static boolean org.sikuli.script.Sikulix.testSetup()
[debug (3/27/15 6:22:37 PM)] RunSetup: invoke: public static boolean org.sikuli.script.Sikulix.testSetup()
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: exists libs folder at: C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixLibs_201503260100
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: libs folder empty or has wrong content
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: now exporting libs
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: libs to export are at:
jar:file:/C:/YK/NewSikuli/sikulixapi.jar!/sikulixlibs/windows/libs32
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: resourceList: enter
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /sikulixlibs/windows/libs32
[debug (3/27/15 6:22:37 PM)] RunTimeSETUP: resourceList: having jar: jar:file:/C:/YK/NewSikuli/sikulixapi.jar!/sikulixlibs/windows/libs32
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: files exported: 17 from: /sikulixlibs/windows/libs32 to:
 C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixLibs_201503260100
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: addToWindowsSystemPath: added to systempath:
C:\Users\Admin2\AppData\Roaming\Sikulix\SikulixLibs_201503260100
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: checkJavaUsrPath: added to ClassLoader.usrPaths
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: resourceList: enter
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /Lib
[debug (3/27/15 6:22:38 PM)] RunTimeSETUP: files exported: 53 from: Lib to:
 C:\Users\Admin2\AppData\Roaming\Sikulix\Lib
[debug (3/27/15 6:22:41 PM)] RunTimeSETUP: loadLib: VisionProxy.dll
[debug (3/27/15 6:22:41 PM)] Mouse: init
[debug (3/27/15 6:22:41 PM)] KeyBoard: init
[debug (3/27/15 6:22:41 PM)] Image: BufferedImage: (100, 100)
[debug (3/27/15 6:22:41 PM)] Finder: Image: __BufferedImage__: (100x100)
[debug (3/27/15 6:22:41 PM)] Sikulix: testSetup: Finder setup with image worked
[debug (3/27/15 6:22:41 PM)] FileManager: tempfile create:
C:\Users\Admin2\AppData\Local\Temp\Sikulix\sikuli-668169056494593429.png
[debug (3/27/15 6:22:42 PM)] Image: loaded: C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png (file:/C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png)
[debug (3/27/15 6:22:42 PM)] Image: cached: C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png (29 KB) (# 1 KB 29 -- 0 % of 64 MB)
[debug (3/27/15 6:22:42 PM)] Sikulix: testSetup: Finder setup with image file worked
[debug (3/27/15 6:22:42 PM)] Region: find: waiting 3.0 secs for C:\Users\Admin2\AppData\Local\Temp\Sikulix\sikuli-668169056494593429.png to appear in S(0)[0,0 1280x1024]
[debug (3/27/15 6:22:42 PM)] Image: reused: C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png (file:/C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png)
[debug (3/27/15 6:22:42 PM)] Region: find: C:\Users\Admin2\AppData\Local\Temp\Sikulix\sikuli-668169056494593429.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1280x1024]) S:1.00 C:50,50 [371/370 msec]
[debug (3/27/15 6:22:42 PM)] Sikulix: testSetup: Screen.find(imagefile) worked
[debug (3/27/15 6:22:42 PM)] Region: find: waiting 3.0 secs for C:\Users\Admin2\AppData\Local\Temp\Sikulix\sikuli-668169056494593429.png to appear in S(0)[0,0 1280x1024]
[debug (3/27/15 6:22:42 PM)] Image: reused: C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png (file:/C:/Users/Admin2/AppData/Local/Temp/Sikulix/sikuli-668169056494593429.png)
[debug (3/27/15 6:22:42 PM)] Region: checkLastSeen: still there
[debug (3/27/15 6:22:42 PM)] Region: find: C:\Users\Admin2\AppData\Local\Temp\Sikulix\sikuli-668169056494593429.png has appeared 
at M[0,0 100x100]@S(S(0)[0,0 1280x1024]) S:1.00 C:50,50 [32/31 msec]
[debug (3/27/15 6:22:42 PM)] Sikulix: testSetup: repeated Screen.find(imagefile) worked
[debug (3/27/15 6:27:10 PM)] Sikulix: testSetup: Finder.find: worked
[debug (3/27/15 6:27:15 PM)] RunSetup: ... SikuliX Setup seems to have ended successfully ;-)


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.