简体   繁体   中英

java.lang.InternalError: Can't connect to X11 window server

I am trying to run my java app on ubuntu server, but i constantly receive this error: java.lang.InternalError: Can't connect to X11 window server. I set the DISPLAY variable to :0.0 but that didn't help. In the X11 log file i got these error messages: (EE) open /dev/fb0: No such file or directory (EE) intel(0): No kernel modesetting driver detected. (EE) Screen(s) found, but none have a usable configuration.

Use

java -Djava.awt.headless=true …

to start without connecting to the X server. This (and other tips) are found in

http://javatechniques.com/blog/linux-x11-libraries-for-headless-mode/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM