Cannot run any script on Windows Server 2016

Asked by Simon Baumeler on 2019-11-13

I tried to use Sikulix on Windows Server 2016 for a deployment automation. Yet nothing works and i always get errors like :

javax.script.ScriptException: ReferenceError: "Commands" is not defined in nashorn:mozilla_compat.js at line number 69

No matter what command i use... (tried App.Open, paste, click, type, etc)

I tried the given tutorial to open windows start and type hello world with the script:

click("windowsStartButton.png")
type("hello world")

yet the same error occurs...

I already installed the newest JDK and the C++ redistributable.

Also i used Debug.on(3) to activate clearer errormessages but the only thing displayed was:

[debug] JavaScriptRunner: runScript failed
javax.script.ScriptException: ReferenceError: "Commands" is not defined in nashorn:mozilla_compat.js at line number 69

Currently using latest stable Version (13.11.2019) 2.0.0

Can anybody help me?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2019-11-13
Last query:
2019-11-13
Last reply:
2019-11-13
Best RaiMan (raimund-hocke) said : #1

I am rather sure, that you do not want to run JavaScript scripts (not really fully available), but the standard Jython/Python scripts.

this might help:
https://github.com/RaiMan/SikuliX1/wiki/How-to-use-Launchpad-downloads

Simon Baumeler (mrpop) said : #2

Weird... i never read that in the documentation or anything...

But i changed to Jython and indeed it works now.

Thanks