|| | |||Browse by category|
How do I run a JViews servlet in a UNIX headless environment?
Using a Java application on a Linux or Solaris machine requires an X server to be running on the system. Unfortunately, most of the time UNIX servers do not have graphics hardware and hence no real X servers running.
Depending on the JDK and JViews module you are using, there are various solutions to make your web servers (using JViews servlets) work in a headless environment.
- Since JDK 1.4, it is possible to use the Sun headless support feature. JViews supports this mode since JViews 5.5.
- JDK 1.3.x and earlier: run a virtual X server like
xvfbas described on Oracle's website.
- Pure Java AWT Toolkit (PJA) is another option to consider, but due to a bug in the current PJA version (2.4) you should not use this third-party product with the Gantt or Charts servlets.