the icon is not on the classpath or the path is not correct...
did you put "Gif_File_Path" just as a replacement for the example ?
if no:
this will look for a resource named "Gif_File_Path" which probably does not exist on yor machine... did you meant to use a reference to the
String object Gif_File_Path which contains a valid value ?
e.g. String Gif_File_Path = "/blabal/myicon.gif"
btw. if you use "_" then
you should write the reference name like:
GIF_FILE_PATH (and make it static/final).
resources are things that are on the classpath and so can be loaded without absolute filesystem paths.
you can change the classpath trough system variables or by specifying when starting up the program (-cp or -classpath option).
also you could put your images in the same location where your application classes are:
classes/apackage/Main.class
/anotherpackage/Xyz.class
/resources/myicon.gif
then you should be able to load the icon with getResource("/resource/myicon.gif") or so...
hope that helped
p