aspose file tools
The moose likes Beginning Java and the fly likes Compiler doesn't overwrite existing .class files? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Compiler doesn Watch "Compiler doesn New topic
Author

Compiler doesn't overwrite existing .class files?

Sanjeev Arya
Ranch Hand

Joined: Feb 13, 2001
Posts: 58
Hi all,
I am suddenly experiencing this problem since I reinstalled JDK1.3 recently. Didn't happen before when I used jdk1.3.
If a .class (say abc.class) already exists, and I run "javac abc.java", it only creates new .class files which do not already exist and never overwrites or replaces the existing ones! So I am having to delete all .class files in the directory before I run javac. What a pain...
Any troubleshooting tips? I am using JDK1.3 on Win98se.
thanks
Sanjeev
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Did you install on top of an existing version of the jdk, or onto a clean system? I had this same problem when I installed 1.3 onto a system with 1.1.6 without completely removing the older jdk first. When I cleaned them both out, and then reinstalled just the 1.3 jdk, the compiler started working.
Sanjeev Arya
Ranch Hand

Joined: Feb 13, 2001
Posts: 58
Thanks Mike. That really helped and the problem is over.
I had actually uninstalled JDK 1.2 (or so I thought) before installing 1.3 but the problem turned out to be the JRE shipped with Oracle 8i Personal Edition for the PC. I had installed Oracle with the NO JDK option but it still did (jre v1.1.7)!!!
Anyways, thanks again...
Sanjeev
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Compiler doesn't overwrite existing .class files?
 
Similar Threads
Trying to find javax, to compile Tomcat servlet
java compiler exception on NT
How to run midlet?
Cannot Find Class File....
Trying to find javax, to compile Tomcat servlet