Results 1 to 4 of 4
  1. #1
    JordashTalon is offline Member
    Join Date
    Jan 2009
    Posts
    37
    Rep Power
    0

    Default How to force Firefox to reload applet

    I'm trying to develop an applet but it has problems refreshing whenever I compile a new class file, it seems to load the old applet and doesn't update changes, how can I fix this, or how do I run an applet in Java without the browser?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    In FireFox you cannot do that. Each time you do some changes into the Applet you have to close the FF page and reopen. Or else try to clear the cache(Ctrl + F5) and have a try.

    You can run an applet on the Applet Viewer as well, without use of FF.

  3. #3
    Zamppa is offline Member
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    13
    Rep Power
    0

    Default

    I'm not sure if ctrl+f5 works with firefox. I recall encountering cases where it did not do the trick.

    However, if you clear the java classloader cache (go to java console and press X) that should do the trick. I usually clear all other parts of cache as well while I'm there if I need to ensure the cache is cleared.

    Also, you can use a refresh parameter. It's basically a random number you'll need to generate whenever the page is refreshed and add as parameter to the end of the class file (say, myClass.java?refresh=24756), which causes Firefox (and every other browser I've tested) to consider it a different file than what it has cached.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Howto force to use an external jar
    By riccardo_b in forum Eclipse
    Replies: 0
    Last Post: 12-11-2008, 11:08 AM
  2. Force Caps in JTable...
    By markw8500 in forum Advanced Java
    Replies: 0
    Last Post: 07-09-2008, 03:27 AM
  3. reload form problem
    By porta325 in forum New To Java
    Replies: 2
    Last Post: 11-01-2007, 05:07 PM
  4. how to reload a jsp page
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-15-2007, 12:49 AM
  5. IE and Firefox
    By Ed in forum Advanced Java
    Replies: 1
    Last Post: 06-15-2007, 05:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •