← Back to team overview

sikuli-driver team mailing list archive

[Question #697558]: SikuliX API - headless error on MacOS Big Sur

 

New question #697558 on SikuliX:
https://answers.launchpad.net/sikuli/+question/697558

I am trying to use SikuliX API on MacOS Big Sur.  I have created a Java program that has a main method and does a simple:

Screen screen = new Screent();

When that code executes I get an exception :

Caused by: org.sikuli.script.SikuliXception: SikuliX: Init: running in headless environment
        at org.sikuli.script.Screen.initMonitors(Screen.java:99) ~[sikulixapi-2.0.5.jar:na]
        at org.sikuli.script.Screen.initScreens(Screen.java:138) ~[sikulixapi-2.0.5.jar:na]
        at org.sikuli.script.Screen.<init>(Screen.java:198) ~[sikulixapi-2.0.5.jar:na]
        at com.phototaco.lrautomation.lrcautomate.LrcautomateApplication.ScrollLibrary(LrcautomateApplication.java:36)

I have added Terminal, Java, and VSCode (the IDE I am using) to Security & Privacy Accessibility and Screen Recording. Is there something else I am missing?  This exception also happens when I run the jar file from a Terminal window

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.