sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00979
Re: [Question #134217]: Using Java API on Mac, some error that caused by OpenCV
Question #134217 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/134217
RaiMan posted a new comment:
-- any help you want - but no warranty for anything when doing the below things, except that it works for me ;-)
-- only valid for Sikuli X 1.0rc1 !!!
If you have any problems with this, contact me directly per mail: https://launchpad.net/~raimund-hocke
OK, download zip from https://files.me.com/rhocke/n4ibg8 (valid until 7th Feb)
it contains:
--1. folder Frameworks
--2. sikuli-script.jar
>>>>> prerequisite: Sikuli-IDE.app has to be in /Applications
step 1: (backup in place)
-- in /Applications/Sikuli-IDE.app/Contents rename folder Frameworks to Frameworks-org
-- in /Applications/Sikuli-IDE.app/Contents/Resources/Java rename sikuli-script.jar to sikuli-script.jar-org
step 2:
- copy folder Frameworks from zip-file to /Applications/Sikuli-IDE.app/Contents
- copy sikuli-script.jar to /Applications/Sikuli-IDE.app/Contents/Resources/Java/
step 3:
-- test Sikuli-IDE.app - should still work with no errors
For any references to Sikuli features outside the Sikuli-IDE: (other IDE's, Java direct, Jython direct, ...)
-- /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar has to be in Java class path
-- with other uses than Java direct /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib has to be in the python path (sys.path)
-- when using Java programs or Jython to run .py:
in your code BEFORE using any Sikuli features (in a .py before the "from sikuli.Sikuli import *")
(this is Python slang - if needed translate to Java ;-)
tmpdir = '/Applications/Sikuli-IDE.app/Contents/Frameworks'
import java
if not java.lang.System.getProperty('java.library.tmpdir'):
java.lang.System.setProperty('java.library.tmpdir', tmpdir)
Really hope it helps.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.