Gif4J Products FAQ > Basics & Troubleshooting > Why do I get a "Can't connect to X11 window server" error?
Gif4J gif animation software logotype
Home Page for Gif4J Software java gif image processing products, solutions and services Products Page for java GIF image processing software Purchase java GIF image managing products Download Gif4J GIF image processing products Java imaging FAQs and Gif4J solutions support Contact Page Customer Area
contact Gif4J java gif image software

Gif4J Products FAQ > Basics & Troubleshooting

Question Add Date
What is the Gif4J PRO? 13 Oct 2004
How to install the Gif4J PRO and Gif4J LIGHT? 13 Oct 2004
Which java versions does the Gif4J PRO support? 13 Oct 2004
Which platforms do the Gif4J PRO & Gif4J LIGHT support? 13 Oct 2004
What are the differences between Gif4J PRO trial and full versions? 13 Oct 2004
Why do I get a "Can't connect to X11 window server" error? 03 Dec 2004
What is the Gif4J LIGHT? 17 Dec 2004
Which java versions does the Gif4J LIGHT support? 17 Dec 2004
What are the differences between Gif4J LIGHT trial and full versions? 17 Dec 2004


Why do I get a "Can't connect to X11 window server" error?


This is a well-known issue on Unix systems - the Java graphical system needs a X11 server even if you just encode(load), process and decode(save) but not display images.
The best solution is to upgrade JDK to 1.4 version ot later, which supports headless graphics environment implementation. To run graphics environment with a headless implementation, the follow property may be specified at the java command line:

    -Djava.awt.headless=true

For example, for tomcat 4 you can add (update) the next string within catalina.sh script:

JAVA_OPTS="-Djava.awt.headless=true"

Note: Sometimes (especially on Linux) it can require the X11 packages to be installed anyway.

If you use JDK 1.2/1.3 then you can:
  1. Install Xvfb: "Xvfb is an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory."
  2. Install PJA Toolkit: "PJA (Pure Java AWT) Toolkit is a JavaTM library for drawing graphics developed by eTeks. It is 100% Pure Java and doesn't use any native graphics resource of the system on which the Java Virtual Machine runs." Find more info here


FAQ menu header image
Gif4J Products FAQ
Basics & Troubleshooting
Licensing & Ordering
subscibe header image
Request a feature, component or service

Home |  Privacy Policy |  Legal Information 
© Gif4J Software 2004-2017