headless mode and linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vissu

    headless mode and linux

    Hi All,

    I heard that we can set -Djava.awt.headl ess=true in JDK 1.4. With this
    setting, do I still need XServer on Linux machine if I am doing AWT
    stuff ? Without XServer I am getting HeadlessExcepti on.

    Thanks for any insight.

    Vissu
  • Missaka Wijekoon

    #2
    Re: headless mode and linux

    Don't you need a display to use awt stuff....by definition of the fact
    that it is used for GUI programming? As long as you do not attempt to
    use any "graphics" java will run "headless". But, if you are attempting
    to run a GUI on a headless system, then I would suggest you download and
    install xvfb (X virtual frame buffer):



    -Misk


    Vissu wrote:[color=blue]
    > Hi All,
    >
    > I heard that we can set -Djava.awt.headl ess=true in JDK 1.4. With this
    > setting, do I still need XServer on Linux machine if I am doing AWT
    > stuff ? Without XServer I am getting HeadlessExcepti on.
    >
    > Thanks for any insight.
    >
    > Vissu[/color]


    --
    =============== =============== =============== =============== ============
    Missaka Wijekoon (a.k.a. Misk) mwijekoon@Remov eThis.villageEd ocs.com
    Sr. Software Engineer http://www.villageEdocs.com
    VillageEdocs
    =============== =============== =============== =============== ============

    Comment

    Working...