Generating image without X11 server on AIX server

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Generating image without X11 server on AIX server

Post by paquerette » Thu Jun 02, 2005 9:23 am

Hi,

i'm on AIX 5.1ML7 using websphere 5.1.2 with IBM JDK 1.4.

I'm getting this error when non X Server is running :

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

I've read that the solution is to run a virtual frame buffer X Server, which is describe here :

http://publibn.boulder.ibm.com/doc_link ... Header_363

But I need more detail as i'm just a software engineer that do not have root access to the AIX server.

Does anybody knows the way to do this?

Paquererette

paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Post by paquerette » Thu Jun 02, 2005 9:51 am

I've also read that setting this parameter should solve the problem with no need installing a VFB

-Djava.awt.headless=true

As i can't set this kind of jvm paramter right now, i've tried this :

System.setProperties("java.awt.headless","true");

But it didn't work.

Paquerette

paquerette
Posts: 10
Joined: Wed Apr 20, 2005 6:23 pm
Location: Paris, France

Post by paquerette » Thu Jun 02, 2005 1:14 pm

Passing the -Djava.awt.headless=true parameter at JVM startup works :).
(AIX 5.1ML7 using websphere 5.1.2 with IBM JDK 1.4.)

Locked