About 8,820,000 results
Open links in new tab
  1. Getting a HeadlessException: No X11 DISPLAY variable was set

    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.

  2. "No X11 DISPLAY variable" - what does it mean? - Stack Overflow

    java -Djava.awt.headless=true -jar gate-5.0-beta1-build3048-installer.jar Additional Note You can also try to set JAVA_TOOL_OPTIONS variable before running the .jar file such as for the app …

  3. java - What is the difference between Swing and AWT? - Stack …

    Jan 3, 2009 · AWT is a Java interface to native system GUI code present in your OS. It will not work the same on every system, although it tries. Swing is a more-or-less pure-Java GUI. It …

  4. Java Event-Dispatching Thread explanation - Stack Overflow

    Aug 8, 2024 · The java.awt.EventQueue.invokeLater and javax.swing.SwingUtilities.invokeLater methods are a way to provide code that will run on the event queue. Writing a UI framework …

  5. Java + Windows RDP disconnect causes Java Headless Exception

    Dec 9, 2024 · Starting with Java 17.0.12 and 21.0.4 Java fails with a Headless exception when running a full GUI app via RDP and the RDP session is disconnected. The remote desktop is …

  6. The import java.awt cannot be resolved - Stack Overflow

    I think the java.awt is included in JDK10, so I add only the line: import java.awt.* in my code. How can I tell to JDK to include java.awt ?

  7. Java Can't connect to X11 window server using 'localhost:10.0' as …

    Now I just get "Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable." on Ubuntu 16.04.

  8. Java Graphics2D transparent background - Stack Overflow

    1 Java is actually pretty good at this stuff, you can achieve transparency and much more. Here's some code for a simple transparent window I copied from oracle: package misc; import …

  9. java - Popup Message boxes - Stack Overflow

    Aug 16, 2011 · } private static final Toolkit AWT_TOOLKIT = Toolkit.getDefaultToolkit(); private static final Clipboard CLIPBOARD = AWT_TOOLKIT.getSystemClipboard(); } The full class …

  10. What is the benefit of setting java.awt.headless=true?

    java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. Note that the JVM contains heuristics that determine the value of java.awt.headless if …