headless

Setting java.awt.headless=true programmatically

僤鯓⒐⒋嵵緔 提交于 2019-11-26 13:49:03
问题 I'm trying to set java.awt.headless=true during the application startup but it appears like I'm too late and the non-headless mode has already started: static { System.setProperty("java.awt.headless", "true"); /* java.awt.GraphicsEnvironment.isHeadless() returns false */ } Is there another way set headless to true beside -Djava.awt.headless=true ? I would prefer not configure anything on the console. 回答1: I was working with a main() in a class which statically loads different parts of

“No X11 DISPLAY variable” - what does it mean?

时光怂恿深爱的人放手 提交于 2019-11-26 12:16:06
I am trying to install a Java application on my Linux machine (Slackware). I have received the following error, and I do not understand it. Could you advise me how to approach the problem? Thank you. Here is what I get: (I see that some X11 DISPLAY variable needs to be set, but what value should I give it and how?) ~$ java -jar gate-5.0-beta1-build3048-installer.jar - ERROR - java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation

How to get Sikuli working in headless mode

南笙酒味 提交于 2019-11-26 10:28:39
问题 If we have a headless test server running sikuli (both ubuntu and windows configurations needed), how to get it work without a physical monitor and preferably for as many screen resolutions as possible. 回答1: I successfully got sikuli running in headless mode (no physical monitor connected) Ubuntu: check Xvfb. Windows: install display driver on the machine (to be headless) from virtualbox guest additions display drivers and use TightVNC to remotely set resolution from another machine. Detailed

“No X11 DISPLAY variable” - what does it mean?

浪尽此生 提交于 2019-11-26 02:55:13
问题 I am trying to install a Java application on my Linux machine (Slackware). I have received the following error, and I do not understand it. Could you advise me how to approach the problem? Thank you. Here is what I get: (I see that some X11 DISPLAY variable needs to be set, but what value should I give it and how?) ~$ java -jar gate-5.0-beta1-build3048-installer.jar - ERROR - java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH error with Headless Chrome

烂漫一生 提交于 2019-11-25 23:23:02
问题 when i run my script , i got this error Traceback (most recent call last): File \"C:\\Users\\ishaq\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\selenium\\webdriver\\common\\service.py\", line 74, in start stdout=self.log_file, stderr=self.log_file) File \"C:\\Users\\ishaq\\AppData\\Local\\Programs\\Python\\Python36\\lib\\subprocess.py\", line 707, in __init__ restore_signals, start_new_session) File \"C:\\Users\\ishaq\\AppData\\Local\\Programs\\Python\\Python36\\lib\