I’m trying to run a Java SWT GUI application in a headless environment and asked myself if there is an equivalent to the AWT option -Djava.awt.headless=true?
If not I will go for Xvfb or Xvnc, anyway I’m curious.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As per this very old bug report there is some problem with SWT headless mode. But again it is very old and was addressed for Mac OS.
Q & A
No there is no such property. Although on Win7 and with eclipse 4.2, you can operate in headless mode (just don’t do
shell.open()).Code
The code below opens a browser instance, waits for its load event and once the page is loaded then it dumps its page content and closes the shell. Also, it creates a color and an image in this headless mode.
Additional