Click to See Complete Forum and Search --> : browser reloading


amazing_andr3
06-20-2005, 08:42 AM
I know I uploaded the latest jar file, but the freakin browser keeps displaying the same old applet.

I cleared the cache. Nothing. I restarted the cmputer and cleared the cache. Nothing.

And now this (quoting Thinking in Java 3rd edition):

If the browser on the client machine cannot locate the .class file on the server, it will hunt through the CLASSPATH on your local machine. Thus, the applet might not be loading properly from the server, but to you it looks fine during your testing process because the browser finds it on your machine. When someone else connects, however, his or her browser can’t find it. So when you’re testing, make sure you erase the relevant .class files (or .jar file) on your local machine to verify that they exist in the proper location on the server

I know that's plain english, but I don't get it. What's the class files on my local machine got to do with the applet which clearly states a path on the server?! Why would the browser want to do this?

Here is the applet: http://www.siteuri.ro/dvorak/contester.php

If the latest version is on the server, it should pop up a message when you click the button 'Copy all the text to clipboard'.

buntine
06-20-2005, 09:18 AM
It's just telling you to delete the class or jar file on your local machine (or atleast move it out of the classpath).

So, if you write your applet in C:\Java\applets\, make sure you remove the .class file from that location before you try to run the applet from the server.

Regards.

amazing_andr3
06-20-2005, 09:26 AM
C:\Java\applets\
It's starting to make some sense... is it because I've added the directory Java to the PATH? So if the applet is in, say, C:\localhost\ there's no need to delete anything right?

buntine
06-20-2005, 10:08 PM
Mayby. I guess it depends on whether you are referring to localhost as the server. Try removing it anyway.

Regards.