I am just learning Java applets. When I changed my code, it doesn’t update if I refresh the page, but it does when I close the entire browser and open it again. I’m using eclipse as my IDE.
Is there some setting I’m missing? Or is the only way to do it?
You can enable the Java Console, which includes several useful commands. In particular,
x: clear classloader cachemay be helpful.Addendum: The Java Console is sometimes the only way to see certain problems early in the applet life cycle, but a hybrid approach is sometimes convenient. You can use your IDE to debug the program as an application and then deploy it as an applet or via Java Web Start.