Page 1 of 1

Pie on Linux without running X11

Posted: Tue May 24, 2011 9:11 am
by 15355046
I running TeeChart on Linux without running X11. Wenn i use PieSeries i get this Exception.

Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getScreenSize(
at com.steema.teechart.drawing.Graphics3D.getScreenWidth(
at com.steema.teechart.styles.Circular.calcCircledRatio(
at com.steema.teechart.styles.Circular.doBeforeDrawValues(
at com.steema.teechart.styles.Series.drawSeries(
at com.steema.teechart.Chart.internalDraw(
at com.steema.teechart.Chart.paint(
at com.steema.teechart.exports.ImageExport.image(
at com.steema.teechart.Chart.image(
at org.tribut.targettbsev.TbSevOhneChartImgHandler.onRender(


Re: Pie on Linux without running X11

Posted: Wed May 25, 2011 9:15 am
by yeray

I've been able to run the features demo in an Ubuntu 11.04 system. But you are probably trying to create your chart in a system without loading a GUI, probably to save it to disk to be streamed to a browser or something like that.
I'm not a linux expert but googling a little bit I found some similar cases and some answers that may help you.
- Someone with the same error message when trying to use a similar chart library was addressed here, where in short words suggests to set:

Code: Select all

- Another developer who found the above wasn't enough for him solved it using FilteredImageSource instead of JFrame.

If you still have problems with it, please tell us more details on your environment and how are you trying to use TeeChart Java.