[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DISPLAY="" makes sablevm and kaffe fail



On Sat, Aug 27, 2005 at 06:24:31PM +0000, Joerg Sommer wrote:
> Hi,
> 
> I will start to maintain a package[1][2] used for analysing the boot
> process. I collects data while booting and saves they somewhere. Later
> the user can run a java program to render a graph from this data.
> 
> If the DISPLAY variable is unset sablevm and kaffe fail to render the
> graph even through no graphical output is needed/made.
> 
> with kaffe as java:
> #v+
> $ DISPLAY= sh -x $(which bootchart) --format png
> + MAIN_CLASS=org.bootchart.Main
> + CLASSPATH=/usr/share/bootchart-view/bootchart.jar:/usr/share/java/commons-cli.jar
> + PROPERTY=java.awt.headless=true
> + exec java -Djava.awt.headless=true -classpath /usr/share/bootchart-view/bootchart.jar:/usr/share/java/commons-cli.jar org.bootchart.Main --format png
> Parsing /var/log/bootchart.tgz
> 
> (.:31854): Gtk-WARNING **: cannot open display:  
> $ echo $?
> 1
> #v-
> 
> with sablevm as java:
> #v+
> $ DISPLAY= sh -x $(which bootchart) --format png
> + MAIN_CLASS=org.bootchart.Main
> + CLASSPATH=/usr/share/bootchart-view/bootchart.jar:/usr/share/java/commons-cli.jar
> + PROPERTY=java.awt.headless=true
> + exec java -Djava.awt.headless=true -classpath /usr/share/bootchart-view/bootchart.jar:/usr/share/java/commons-cli.jar org.bootchart.Main --format png
> Parsing /var/log/bootchart.tgz
> 
> (.:31947): Gtk-WARNING **: cannot open display:  
> $ echo $?
> 1
> #v-
> 
> Can sablevm and kaffe render png images?

Currently GNU classpath which gets used by both can only render images using GTK
and these do not work headless. It will take some time to develop this upstream.
This is being worked on.


Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/



Reply to: