Trying to run script

Asked by Humberto A. Sanchez II

Error On

MacBook Pro M1 Monterey 12.4

openjdk version "18.0.1" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 18.0.1+0)
OpenJDK 64-Bit Server VM Homebrew (build 18.0.1+0, mixed mode, sharing)

Exception in thread "Thread-24" java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
 at com.sun.jna.Memory.malloc(
 at com.sun.jna.Memory.<init>(
 at com.sun.jna.ptr.ByReference.<init>(
 at com.sun.jna.ptr.IntByReference.<init>(
 at org.sikuli.script.runners.AbstractScriptRunner.runAbortable(
 at org.sikuli.script.runners.AbstractScriptRunner.runSynchronized(
 at org.sikuli.script.runners.AbstractScriptRunner.runLines(
 at org.sikuli.ide.EditorPane$
 at java.base/
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Can't load library: /Users/humberto.a.sanchez.ii/Library/Caches/JNA/temp/jna9164600771386927776.tmp [in thread "Thread-2"]
 at java.base/java.lang.ClassLoader.loadLibrary(
 at java.base/
[debug] IDE: MenuAction.runSelection
 at java.base/java.lang.System.load(
 at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(
 at com.sun.jna.Native.loadNativeDispatchLibrary(
 at com.sun.jna.Native.<clinit>(
 at com.sun.jna.ptr.PointerByReference.<init>(
 at com.sun.jna.ptr.PointerByReference.<init>(
 at com.tulskiy.keymaster.osx.CarbonProvider$
 ... 1 more
[debug] IDE: MenuAction.openAsk

Script do not run, just hang

Question information

English Edit question
SikuliX Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :

on macOS M1 currently only 2.0.6 snapshot is useable.

Revision history for this message
RaiMan (raimund-hocke) said :

only bugs on Java LTS versions (11, 17) are accepted for a possible fix.

Revision history for this message
Humberto A. Sanchez II (hasii2020) said :

Ok, found 2.0.6. but it fails with

java -jar ./sikulixidemacm1-2.0.6-20220409.135403-15.jar
Exception in thread "main" org.sikuli.script.SikuliXception: FATAL: Capture is blocked
 at org.sikuli.ide.Sikulix.main(

Revision history for this message
RaiMan (raimund-hocke) said :

You have to unlock the features in the Settings->Privacy

Can you help with this problem?

Provide an answer of your own, or ask Humberto A. Sanchez II for more information if necessary.

To post a message you must log in.