Setup Linux desktop / GUI environment
Android build upon a Linux kernel and most Linux systems use a desktop environment like GNOME, KDE, LXDE etc.
I have compiled Linux kernel and minimal root file system build with busybox, arm cross compiler tool-chain and arm-J2SE. Currently I have the basic Command Line Interface. Now I want to use a desktop environment (enable mouse and handle mouse or touchscreen inputs/events). Because my java command line codes running fine but when I am using swing or awt application it shows this exception.
Just I have a look on javadoc and It shows,
Exception in thread "main" java.awt.HeadlessException at
Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
public class HeadlessException
Basically it need some window management or GUI like environment. I found few library for building a GUI environment like XLIB/X11,SDL which can manage those mouse and touch screen events. Can any one tell me where to start to achieve my goal. Few Linux system use startx command to enable GUI environment then brought the desktop,window,mouse etc. I need some thing like this to run my java gui applications. Could any one lead me a way.