Mac: runsikulix -- all you need is in the folder, where you run setup

Asked by Jeff_Vallis on 2018-07-07

********************** global comment
All you need to know is here:
http://www.sikulix.com/quickstart/
and here:
http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#sikulix-system-specifics

the runsikulix command script is in the folder where you have run setup.
--------------------------------------------------------------------------------------------------------------------

1.1.3(2018-07-05_16:27)/Mac10.13.5/Java8(64)1.8.0_25-b17

Up Until today have been running 1.1.1 and executing scripts with
/Applications/Sikuli/runsikulix -r path to file

How do I do this now

Searches led me to believe this would work:-
SIKULI_HOME=/Applications/Sikuli-IDE.app/Contents/Resources/Java
 java -jar $SIKULI_HOME/sikuli-script.jar /Users/Jeff/Desktop/SikuliScripts/Guld_Warfare/Get_Sails_Mk2.sikuli

Result :-
Error: Unable to access jarfile /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Jeff_Vallis
Solved:
2018-07-07
Last query:
2018-07-07
Last reply:
Jeff_Vallis (vallis-pj) said : #1

Installation in new folder
 Then Moved SikuliX.app to Applications
WRONG
Should have moved folder to applications and called it Sikuli

[debug (07/07/18 08:25:01)] Debug: setLogFile: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX-1.1.3-SetupLog.txt
[debug (07/07/18 08:25:01)] RunSetup: ... starting with no args given
[debug (07/07/18 08:25:01)] RunSetup: Setup: 1.1.3 2018-07-05_16:27 in folder:
/Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli
[debug (07/07/18 08:25:01)] RunSetup: RunningSystem: Mac OSX 10.13.5
[debug (07/07/18 08:25:01)] RunSetup: parent of jar/classes: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli
[debug (07/07/18 08:25:01)] RunSetup: RunningJava: Java 8 (x86_64) 1.8.0_161-b12
[debug (07/07/18 08:25:01)] init user preferences
[debug (07/07/18 08:25:08)] RunSetup:
popAsk: --------------------
The following file(s) will be downloaded to
/Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli
--- Native support libraries for Mac OSX (sikulixlibs...)
--- Package 1 ---
sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar (IDE/Scripting)
sikulixsetupAPI-1.1.3-20180705.162943-32-forsetup.jar (Java API)
 - with Jython
 - creating Mac application
Only click NO, if you want to terminate setup now!
Click YES even if you want to use local copies in Downloads!
--------------------
[debug (07/07/18 08:25:11)] RunSetup:
popAsk: --------------------
You have for Mac native libs
/Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/sikulixlibsmac-1.1.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (07/07/18 08:25:13)] RunSetup: Copied from Downloads: sikulixlibsmac
[debug (07/07/18 08:25:13)] RunSetup:
popAsk: --------------------
You have for SikuliX IDE package
/Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads_201807051627/sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (07/07/18 08:25:48)] FileManager: download to string from:
https://oss.sonatype.org/content/groups/public/com/sikulix/sikulixsetupIDE/1.1.3-SNAPSHOT/maven-metadata.xml,
[debug (07/07/18 08:25:48)] RunSetup: getMavenJar: sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar
[debug (07/07/18 08:25:48)] FileManager: Downloading sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar having 23022 KB
[debug (07/07/18 08:26:03)] FileManager: downloaded 23022 KB to:
/Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads_201807051627/sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar
[debug (07/07/18 08:26:03)] FileManager: download time: 14
[debug (07/07/18 08:26:06)] RunSetup: Copied from Downloads: sikulix
[debug (07/07/18 08:26:06)] RunSetup:
popAsk: --------------------
If you click YES, you will get Jython version 2.7.0 (recommended)
... but in rare cases there might be issues with UTF-8/Unicode
that usually appear on startup when UTF-8 characters
are present somewhere in the system environment
If you encounter such problems with Jython 2.7.0
run setup again and
click NO to get Jython a 2.5.4 version
--------------------
[debug (07/07/18 08:26:11)] RunSetup:
popAsk: --------------------
You have for Jython 2.7
/Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar
Click YES, if you want to use this for setup processing
... or click NO, to ignore it and download a fresh copy
--------------------
[debug (07/07/18 08:26:26)] FileManager: Downloading jython-standalone-2.7.1.jar having 40171 KB
[debug (07/07/18 08:26:31)] FileManager: downloaded 40171 KB to:
/Users/Jeff/Library/Application Support/Sikulix/SikulixDownloads/jython-standalone-2.7.1.jar
[debug (07/07/18 08:26:31)] FileManager: download time: 4
[debug (07/07/18 08:26:35)] RunSetup: Copied from Downloads: Jython
[debug (07/07/18 08:26:35)] RunSetup: Download ended
[debug (07/07/18 08:26:35)] RunSetup: Downloads for selected options:
sikulixlibsmac-1.1.1.jar sikulixsetupIDE-1.1.3-20180705.163010-32-forsetup.jar sikulixsetupAPI-1.1.3-20180705.162943-32-forsetup.jar jython-standalone-2.7.1.jar
[debug (07/07/18 08:26:35)] RunSetup: adding needed stuff to sikulix.jar
[debug (07/07/18 08:26:35)] FileManager: buildJar: sikulixtemp.jar
[debug (07/07/18 08:26:35)] FileManager: buildJar: adding: sikulix.jar
[debug (07/07/18 08:26:50)] FileManager: buildJar: adding: sikulixjython.jar
[debug (07/07/18 08:27:57)] FileManager: buildJar: adding: sikulixlibsmac.jar
[debug (07/07/18 08:28:09)] FileManager: buildJar: completed
[debug (07/07/18 08:28:09)] RunSetup: renaming sikulixtemp.jar to target jar: sikulix.jar
[debug (07/07/18 08:28:10)] RunSetup: making the Mac application Sikulix.app
[debug (07/07/18 08:28:10)] RunTimeSETUP: resourceList: enter
[debug (07/07/18 08:28:10)] RunTimeSETUP: resourceLocation: (class org.sikuli.setup.RunSetup) /macapp
[debug (07/07/18 08:28:10)] RunTimeSETUP: resourceList: having jar: jar:file:/Users/Jeff/Desktop/Sikuli%20Previous%20Versions/Sikuli/sikulixsetup-1.1.3-20180705.163043-32-forsetup.jar!/macapp
[debug (07/07/18 08:28:10)] RunTimeSETUP: files exported: 6 from: macapp to:
 /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX.app
[debug (07/07/18 08:28:12)] RunSetup: processing commandfiles
[debug (07/07/18 08:28:12)] RunTimeSETUP: exists libs folder at: /Users/Jeff/Library/Application Support/Sikulix/SikulixLibs_201807051627
[debug (07/07/18 08:28:12)] RunTimeSETUP: addToClasspath:
file:/Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX.app/Contents/Java/sikulix.jar
[debug (07/07/18 08:28:12)] RunSetup: Jython: Trying to run functional test: running script statements via SikuliScript
[debug (07/07/18 08:28:17)] ScriptingSupport: initScriptingSupport: enter
[debug (07/07/18 08:28:25)] JythonSupport: init: starting
[debug (07/07/18 08:28:25)] JythonSupport: init: success
[debug (07/07/18 08:28:25)] JythonSupport: added as Jython::sys.path[0]:
/Users/Jeff/Library/Application Support/Sikulix/Lib/site-packages
[debug (07/07/18 08:28:25)] JythonSupport: ***** Jython sys.path
 0: /Users/Jeff/Library/Application Support/Sikulix/Lib/site-packages
 1: /Users/Jeff/Library/Application Support/Sikulix/Lib
 2: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX.app/Contents/Java/Lib
 3: /Users/Jeff/Desktop/Sikuli Previous Versions/Sikuli/SikuliX.app/Contents/Java/sikulix.jar/Lib
 4: __classpath__
 5: __pyclasspath__/
[debug (07/07/18 08:28:25)] JythonSupport: ***** Jython sys.path end
[debug (07/07/18 08:28:25)] Jython: sikuli: Sikuli: starting init
[debug (07/07/18 08:28:27)] RunTimeSETUP: exists libs folder at: /Users/Jeff/Library/Application Support/Sikulix/SikulixLibs_201807051627
[debug (07/07/18 08:28:28)] RunTimeSETUP: loadLib: libVisionProxy.dylib
[debug (07/07/18 08:28:28)] Mouse: init start
[debug (07/07/18 08:28:28)] Mouse: init end
[debug (07/07/18 08:28:28)] RunTimeSETUP: loadLib: libMacUtil.dylib
[debug (07/07/18 08:28:28)] Jython: requested to use as default region: S(0)[0,0 1920x1080]
[debug (07/07/18 08:28:29)] Jython: sikuli: Sikuli: ending init
[debug (07/07/18 08:28:29)] JythonScriptRunner: running Jython 2.7.1
[debug (07/07/18 08:28:29)] ScriptingSupport: initScriptingSupport: added: jython
[debug (07/07/18 08:28:29)] ScriptingSupport: initScriptingSupport: added: JavaScript
[debug (07/07/18 08:28:29)] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython (py)
[debug (07/07/18 08:28:29)] Jython: requested to use as default region: S(0)[0,0 1920x1080]
[debug (07/07/18 08:28:30)] JythonScriptRunner: runPython: running statements
[debug (07/07/18 08:28:30)] Image: BufferedImage: (100, 100)
[debug (07/07/18 08:28:30)] Finder: Image: __BufferedImage__: (100x100)
[debug (07/07/18 08:28:30)] Sikulix: testSetup: Finder setup with image worked
[debug (07/07/18 08:28:30)] FileManager: tempfile create:
/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png
[debug (07/07/18 08:28:30)] Image: loaded: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png (file:/private/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png)
[debug (07/07/18 08:28:30)] Image: cached: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png (29 KB) (# 1 KB 29 -- 0 % of 64 MB)
[debug (07/07/18 08:28:30)] Sikulix: testSetup: Finder setup with image file worked
[debug (07/07/18 08:28:30)] Image: reused: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png (file:/private/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png)
[debug (07/07/18 08:28:30)] Region: wait: waiting 3.0 secs for /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png to appear in S(0)[0,0 1920x1080]
[debug (07/07/18 08:28:32)] Region: wait: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png appeared (M[0,0 100x100]@S(S(0)[0,0 1920x1080]) S:1.00 C:50,50 [1440 msec])
[debug (07/07/18 08:28:32)] Sikulix: testSetup: Screen.find(imagefile) worked
[debug (07/07/18 08:28:32)] Image: reused: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png (file:/private/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png)
[debug (07/07/18 08:28:32)] Region: wait: waiting 3.0 secs for /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png to appear in S(0)[0,0 1920x1080]
[debug (07/07/18 08:28:33)] Region: wait: /var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087/sikuli-8739828236161588984.png appeared (M[0,0 100x100]@S(S(0)[0,0 1920x1080]) S:1.00 C:50,50 [1295 msec])
[debug (07/07/18 08:28:33)] Sikulix: testSetup: repeated Screen.find(imagefile) worked
[debug (07/07/18 08:28:39)] Sikulix: testSetup: Finder.find: worked
[debug (07/07/18 08:28:39)] RunSetup: MacApp created - should be moved to /Applications
[debug (07/07/18 08:28:50)] RunSetup: ... SikuliX Setup seems to have ended successfully ;-)
[debug (07/07/18 08:28:50)] RunTimeSETUP: final cleanup
[debug (07/07/18 08:28:50)] FileManager: deleteFileOrFolder:
/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_1025771087