IBM AIX and PJA problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Stephen Oostenbrink

IBM AIX and PJA problem

Post by Stephen Oostenbrink » Mon Oct 28, 2002 10:57 am

Hi,

We are trying to get JFreeChart to run on IBM AIX. Our code runs fine on NT, but for AIX we have to use the PJA implementation so we have headless support. We have installed PJA and it runs fine for the first two demos. But on the last two demos we get an exception. Has anoyone else encountered this problem?

Regards,

Stephen

lyonnel

Re: IBM AIX and PJA problem

Post by lyonnel » Mon Oct 28, 2002 2:05 pm

it should be a problem with font (AIX hasn't good font) ? SO try this :


JFreeChart chart;
chart.getXYPlot().getDomainAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getDomainAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
chart.getXYPlot().getRangeAxis().setTickLabelFont(new Font("Lucida Sans", Font.PLAIN, 10));
((StandardLegend) chart.getLegend()).setItemFont(new Font("Lucida Sans", Font.PLAIN, 10));

Stephen Oostenbrink

Re: IBM AIX and PJA problem

Post by Stephen Oostenbrink » Wed Oct 30, 2002 3:52 pm

Hi Lyonnel,

Thanks for the info. We got it to work!

- Stephen

Dave Gilbert

Re: IBM AIX and PJA problem

Post by Dave Gilbert » Wed Oct 30, 2002 6:35 pm

Does that mean AIX doesn't support "SansSerif" as a font (the default in JFreeChart)?

Regards,

DG.

lyonnel

Re: IBM AIX and PJA problem

Post by lyonnel » Thu Oct 31, 2002 9:05 am

AIX hasn't "SansSerif" font in its OS,
so We can use only the different fonts of JDK for Jfreechart /AIX

Dave Gilbert

Re: IBM AIX and PJA problem

Post by Dave Gilbert » Thu Oct 31, 2002 10:23 am

Thanks for the answer. I think my question wasn't well phrased though. "SansSerif" is a Java logical font name, the JDK should map it to a real font. So I'm wondering why this doesn't work on AIX. Is it a problem with the JDK on AIX?

Regards,

DG

Stephen Oostenbrink

Re: IBM AIX and PJA problem

Post by Stephen Oostenbrink » Thu Oct 31, 2002 10:50 am

It seems to be a problem with the AIX JDK implementation, as PJA does not have this problem on other platforms.

Locked