sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35785
Re: [Question #274811]: screen/graphics issue when running from terminal
Question #274811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/274811
Status: Answered => Open
Laimis is still having a problem:
Hi RaiMan,
Appreciate your help. I have some ideas with Sikuli and I plan to use
your application on my Mac OS and VM's later.
I hope there is the way to prepare Sikuli for scheduled jobs from
command line.
mac:Sikulix root# export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
mac:Sikulix root#
mac:Sikulix root#
mac:Sikulix root#
mac:Sikulix root#
mac:Sikulix root#
mac:Sikulix root# /usr/libexec/java_home -v 1.7
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
mac:Sikulix root# cat ../sikuli.sikuli/sikuli.py
click("1447895220871.png")
mac:Sikulix root# ./runsikulix -d 3 -c -r /Users/apple/Downloads/sikuli.skl
running SikuliX: /Applications/SikuliX.app/Contents/Java/sikulix.jar -d 3 -c -r /Users/apple/Downloads/sikuli.skl
[debug] RunTimeINIT: loadOptions: check: /Users/apple/Downloads/Sikulix
[debug] RunTimeINIT: loadOptions: check: /var/root
[debug] RunTimeINIT: loadOptions: check: /var/root/Library/Application Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: running in headless environment
[debug] RunTimeINIT: runs as sikulix.jar in: /Applications/SikuliX.app/Contents/Java
[debug] RunTimeINIT: exists libs folder at: /var/root/Library/Application Support/Sikulix/SikulixLibs_201510051707
***** show environment for IDE (build 201510051707)
user.home: /var/root
user.dir (work dir): /Users/apple/Downloads/Sikulix
user.name: root
java.io.tmpdir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T
running 64Bit on Mac OSX (10.10.5) as application .app
java 7-64 version 1.7.0_80-b15 vm 24.80-b11 class 51.0 arch x86_64
app data folder: /var/root/Library/Application Support/Sikulix
libs folder: /var/root/Library/Application Support/Sikulix/SikulixLibs_201510051707
executing jar: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump sikulix
0: /Applications/SikuliX.app/Contents/Java/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] RunTimeIDE: initAPI: entering
[debug] RunTimeIDE: initAPI: leaving
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:224)
at org.sikuli.ide.SikuliIDE.<init>(SikuliIDE.java:153)
at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:158)
at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:179)
at org.sikuli.ide.Sikulix.main(Sikulix.java:21)
[debug] RunTimeIDE: final cleanup
[debug] FileManager: deleteFileOrFolder:
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/Sikulix_1188848451
mac:Sikulix root#
mac:Sikulix root# echo $DISPLAY
mac:Sikulix root#
mac:Sikulix root# id
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),12(everyone),20(staff),29(certusers),61(localaccounts),80(admin),701(com.apple.sharepoint.group.1),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),702(com.apple.sharepoint.group.2)
mac:Sikulix root#
I tried to change DISPLAY variable without any luck. JDK 1.6, 1.7 and
1.8 tested.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.