I have a JApplet which will bring up another JFrame with some gif pictures. Since the JApplet contains the "public static void main", it calls up the JFrame and the gif load up without any problem. However, once we put it up onto a web server. It returns some kind messages like "the gif is not permitted to load up". I have set the codebase=./ . However it still doesn't work. Can anybody tell me how to solve this ?