With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>
Exception in thread “awt-eventqueue-0” java.awt.headlessexception: blog classification: exception
Exception in thread "AWT-EventQueue-0" 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:159)
Solution:
Add this in the Java startup parameter
Java code
-Djava.awt.headless= true
Similar Posts:
- Java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment [Solved]
- The WebLogic Server cannot open the print window in the program
- Can’t connect to X11 window server using ‘:1.0’ as
- [Solved] Abnormal build process termination IDEA Start Error
- IDEA uses sonarlint error [How to Solve]
- Exception in thread “main“ java.io.IOException: java.lang.reflect.InvocationTargetException
- [Solved] Weblogic error: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11G
- JAVA Command Error: A JNI error has occurred, please check your installation and try again [Solved]
- [Solved] java.lang.Exception: java.sql.SQLException: ORA-06553: PLS-306: wrong number or types of arguments in call to ‘SP_ ACT_ DAYACCOUNTAMOUNT’
- [Solved] Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.11+9-0ubuntu2~20.04 404 Not Found [IP: 91.189.88.152 80]