- Subject: Re: issue using jfree chart with gnu classpath 0.98
- From: New User <jpa@xxxxxxxxxxxx>
- Date: Mon, 17 Aug 2009 18:06:27 +0200
Hi,
I'm not part of the GNU Classpath team, but I'm using it and well, I have to
say that I love it! At least for embedded systems it's great...
But to answer your question, the method font.getName() isn't implemented
(yet) in GNU Classpath 0.98. You can check the coverage for GNU Classpath
against Java 1.5 on this site: http://www.kaffe.org/~stuart/japi/htmlout/h-
jdk15-classpath.html
There you can find: 'method java.awt.Font.getName(): missing in classpath'.
What is a nice answer I guess... It don't means that you can't use the
java.awt.Font, but the method .getName isn't implemented yet.
I hope this is a good answer for you question...
Good luck,
Jan Pannecoeck
Dhaval Yoganandi <dhaval.yoganandi@xxxxxxxxxxxxx> wrote:
>
Hi GNU classpath team,
>
>I'm facing some problem using jfree chart with GNU classpath 0.98 and
>JamVM. I'm using a redhat based linux which is only console based linux
>and doesn't support desktop and graphics. while running following demo
>in my machine with JamVM I get NullPointerException but it is working
>fine with JDK 1.5 with update 14. While generating chart with jfree
>chart it is also giving the same error.
>
>import java.awt.Font;
>public class FontDemo{
> public static void main(String args[]){
> Font f = new Font("SansSerif", Font.BOLD, 18);
> System.out.println(f.getName());
> }
>}
>
>OUTPUT:
>/bin/jamvm/bin/jamvm -cp . FontDemo Exception in thread "main"
>java.lang.NullPointerException
> at java.awt.Font.getName(Font.java:427)
> at FontDemo.main(FontDemo.java:5)
>
>can you shed some more light on this issue ?
>
>--
>Thanks and Regards,
>
>Dhaval Yoganandi,
>Jr. Software Engineer,
>Elitecore Technologies Ltd.
>Cyberoam.
>
>
>
[Linux Kernel]
[Linux Cryptography]
[Fedora]
[Fedora Directory]
[Red Hat Development]