• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiler doesn't overwrite existing .class files?

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic