sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10545
Re: [Question #196785]: Run a script without IDE - java.lang.UnsatisfiedLinkError
Question #196785 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/196785
Status: Open => Answered
RaiMan proposed the following answer:
--- It is not recommended, to put scripts into the Sikuli installation
folder, since this is a special folder on Windows with special access
restrictions, which might lead to unexpected results, when running or
editing such a script.
--- A "portable" Sikuli needs the following things:
- the folder libs with its contents from the Sikuli installation directory
- sikuli-script.jar
- a command file (e.g. runsikuli.cmd) to run a script
Supposing we have a valid standard Java 6 installation and it is a
32-Bit Windows 7.
Having the above stuff in a folder (e.g. c:\mySikuli), this is a basic runsikuli.cmd
@echo off
set OLDPATH=%PATH%
set SIKULI_HOME=%~d0%~p0
PATH=%SIKULI_HOME%libs;%ProgramFiles%\Java\jre6\bin;%PATH%
java -jar %SIKULI_HOME%sikuli-script.jar %1
PATH=%OLDPATH%
usage:
runsikuli.cmd absolute-path-to-myscript.sikuli
If you want, you can pack all this together in a zip file and unzip it
on another machine with a valid Java installation and you will be able
to run your Sikuli scripts.
With solutions like e.g. http://portableapps.com/ it is possible, to
pack something together (e.g. on a stick) that runs the whole Sikuli
stuff including IDE on every Windows machine, even without Java
installed and without touching anything on the host.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.