a jar problem
well, I'm facing a problem with my jar
I was creating a digital clock application , I used the class loader to load a font that is not rgestered with my system and it runs perfectly from the netbeans , but when I build the jar it doesn't work as it says that there is a NullPointerException as the jar couldn't Identify my new font,please help me.
public Display(){
super("Digital Clock");
ClassLoader cl =ClassLoader.getSystemClassLoader();
is = cl.getResourceAsStream("Font/DIGITALDREAM.ttf");
try{
font = Font.createFont(java.awt.Font.TRUETYPE_FONT, is);//here the problem goes
}catch(Exception e){}
font=font.deriveFont(Font.BOLD,20f);

