Jan Pannecoeck
Mon, 17 Aug 2009 22:59:14 -0700
Andrew,Thanks for the remark, I didn't know I was checking against an old implementation of GNU Classpath! Thanks for the link to the new site!!
Dhaval, sorry that I gave you the wrong answer!! I hope your problem can be fixed soon!
Good luck, Jan Pannecoeck Andrew John Hughes wrote:
2009/8/17 New User <j...@mgb-tech.com>: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.yogana...@elitecore.com> 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.Jan, Thanks for the positive comments. However, the link you refer to is very outdated (2007). If you check: http://builder.classpath.org/japi/jdk15-classpath.html you will find results against the current version of GNU Classpath, rebuilt several times daily. Links to this are available on the GNU Classpath homepage: http://www.gnu.org/software/classpath getName() is implemented, that's why it throws a NullPointerException rather than not compiling. Dhaval, please file this as a bug at http://gcc.gnu.org/bugzilla