Results 1 to 4 of 4
  1. #1
    sunjavaboy is offline Member
    Join Date
    Mar 2008
    Posts
    12
    Rep Power
    0

    Question java.awt.HeadlessException Applet not displayed

    I am using Tomcat 5.5.23, JDK 1.5 on HP Unix. We have an application which when invoked form tomcat starts an applet. It was working fine till JDK 1.4. But now we have moved to JDK 1.5 and the applet does not start. The exception thrown is -
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.

    I then added JAVA_OPTS="-Djava.awt.headless=true" to catalina.sh file. But still I get the same Headless exception, but this time without the X11 Display message.

    Any help would be appreciated.

  2. #2
    neilcoffey is offline Senior Member
    Join Date
    Nov 2008
    Posts
    286
    Rep Power
    6

    Default

    I don't fully understand what you're doing, but this sounds like something that shouldn't work. I'm amazed it used to work before...

  3. #3
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  4. #4
    sunjavaboy is offline Member
    Join Date
    Mar 2008
    Posts
    12
    Rep Power
    0

    Default

    Could you please let me know how to forward X11 on server side?

Similar Threads

  1. Replies: 1
    Last Post: 09-15-2008, 08:21 PM
  2. Nodes displayed in JTree
    By Orange in forum AWT / Swing
    Replies: 6
    Last Post: 08-08-2008, 05:07 AM
  3. Tooltip not getting displayed...
    By Preethi in forum New To Java
    Replies: 4
    Last Post: 07-31-2008, 10:00 AM
  4. displayed the rownumbers
    By geeta_ravikanti in forum JDBC
    Replies: 1
    Last Post: 04-22-2008, 02:30 AM
  5. Java Components are not displayed(sometimes)
    By archanajathan in forum AWT / Swing
    Replies: 3
    Last Post: 11-05-2007, 08:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •