Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Applet doesn't change when modified

Posted on 1998-11-05
5
207 Views
Last Modified: 2010-03-30
Write an applet - works fine.  Make a change to the applet
and do the javac recompile to re-create the class but the
browser refuses to show the new applet modifications - it
keeps the old one, even if I clear cache, reload, etc.
What's the deal?  The only way I've been able to see the changes
is to give it a new name - surely there's something simple I'm
not doing.
0
Comment
Question by:robjay
  • 3
  • 2
5 Comments
 

Author Comment

by:robjay
ID: 1227013
Edited text of question
0
 
LVL 8

Expert Comment

by:diakov
ID: 1227014
Because the Java machine has already loaded once the class with the name of the applet. You have to quit every single instance of the browser, to kill the JVM. Then it will load the correct one.
The Netscape 4.5, however, seems to reload the applet class if modified after reload. You also have to specify some additional settings in the preferences.

Cheers,
  nik
0
 
LVL 8

Accepted Solution

by:
diakov earned 50 total points
ID: 1227015
http://www.javaworld.com/javaworld/javatips/jw-javatip7.html

This article gives 5 ways to make Netscape Reload the applet.
0
 

Author Comment

by:robjay
ID: 1227016
Thanks - I appreciate the url reference.  With Netscape 4.5b2, holding the Shift key down
while hitting reload works like a charm.  However, in the real-world, my goal is to program
applets that will change every hour, and I would like to avoid having to have a user method
of "go out and get Netscape 4.5 and hold down the shift key when you reload to see
the updates" or the hassle of quitting every instance of your browser.  Is there not some way to java code destruction to render the HTML meta tag equivalent of "<meta http-equiv="Pragma" content="no-cache" > effect for updated applets on your page?
0
 
LVL 8

Expert Comment

by:diakov
ID: 1227017
If the applet class is the same name, this could be really difficult.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question