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.