Re: JRE reads old class after compiling



On Mon, 14 Mar 2011 05:32:43 -0700 (PDT), mkn
<markku.niskanen@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :


To my surprise running java -cp .\lib.jar;.\ RasDialer showed the
old application. Well, I cleared the project, recompiled, removed and
the result was still the same.

If you have a tool like TakeCommand get it to search all your disks
for stray copies of the *.class file or *.jar files that might contain
the class. Perhaps some other copy is beating you to it on the
classpath.

you might like to implement a little student project to give you tool
to let you solve this easily.

See http://mindprod.com/project/which.html

--
Roedy Green Canadian Mind Products
http://mindprod.com
Refactor early. If you procrastinate, you will have
even more code to adjust based on the faulty design.
..

.