473,561 Members | 3,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Jul 17 '05 #1
1 3430
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):


Vissu wrote:
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.


=============== =============== =============== =============== ============
Missaka Wijekoon (a.k.a. Misk) mw*******@Remov eThis.villageEd ocs.com
Sr. Software Engineer http://www.villageEdocs.com
=============== =============== =============== =============== ============
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: de_subhadeep | last post by:
Hi All, My program is running on a headless mode and I need to set the look and feel of my program but it gives me Headless Exception when I try to set the look and feel. The exception is as follows at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(null:-1) at com.sun.java.swing.plaf.windows.XPStyle.getImage(null:-1) at...
by: Van Nguyen via DotNetMonster.com | last post by:
My app run at 2 modes: Windows and Service. At Windows mode, my app works fine but at service mode, I can not use CreateDirectory command to create a new directory on server. Ex: Directory.CreateDirectory(@"\\ghpvn-linux1\ghp\20041205"); ghpvn-linux1: is the server name ghp: is the shared directory 20041205: is the directory that I want to...
by: dvstormuser | last post by:
I have been having trouble trying to create a sample headless application in Platform Builder 5.0. Eventually, this must have TCP/IP, WebServer, and probably DHCP for a local net. I tried using the PB5.0 sample configuration for a Gateway, but could not get my desktop PC to talk to it. I am trying to use the Emulator as the platform. I also...
by: Peter Chant | last post by:
I hope no one minds me running this past them. I'm running a linux machine with with apache, php and mysql. This is not accessable from the internet. I want a server that is visable to the internet. For that purpose I am running a user mode linux machine and using apache on that as the external looking web server. This means that stuff I...
by: Ole | last post by:
How should I write a headless application for a CE 5.0 Compact Framework v2 device and what should I beware of? An example e.g. is highly appreciated. Thanks, Ole
by: frakie | last post by:
Hi 'body, is there any function to get the RTC ticks under user mode on linux? I could not use gettimeofday because it is too slow and affects measures...
by: Brice Rebsamen | last post by:
Hi I wrote the following program that reads the keyboard in medium raw mode (keycode mode). Here is the initialization code, the full code is at the end. fd = open("/dev/tty0", O_RDONLY); tcgetattr ( fd, &newkbd ); newkbd.c_lflag &= ~ (ECHO | ICANON | ISIG); newkbd.c_iflag = 0;
by: Michele Simionato | last post by:
I have noticed that the python-mode for Emacs that comes with the latest Ubuntu is missing the class browser. Moreover if works differently from the python-mode I was used to (for instance CTRL-c-c works as CTRL-c-! whereas CTRL-c-! is missing, etc). How can I go back to the old python-mode or at least how do I get back the class browser? ...
by: =?ISO-8859-15?Q?L=E9na=EFc?= Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all, For some reasons, somewhere in a program, I'd like, if possible, to quickly parse a whole file before rewinding it and letting the full analysis start. My problem is that the FILE* I want do parse has been fopen'ed far away from where I am and I don't know in which MODE my FILE*...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.