have to delete *.class files before can recompile

Hello,

I am very new to Java and so have probably missed something really obvious, but I have to delete all .class files before I can recompile my program. If I don't delete the class files, changes i make in the source will not take effect.

Does anyone have any ideas?

Thanks,

Chuck

[317 byte] By [chucklargea] at [2007-11-27 1:23:52]
# 1
Sounds like maybe you have a dependency caching system that isn't functioning correctly, maybe?In general, javac should recompile, even if the .class file already exists.- Adam
guitar_man_Fa at 2007-7-12 0:14:10 > top of Java-index,Java Essentials,New To Java...
# 2

Hi,

Well, I do have a series of dependent classes, ie

class1 composed of class2 composed of class3 composed of class4

one of the classes has an array size over 4 million, but there is only one instance of it in the entire program.

I am may change the class structure in the future but for the time being, can i force javac to compile?

chuck

chucklargea at 2007-7-12 0:14:10 > top of Java-index,Java Essentials,New To Java...
# 3
How are you compiling? Command line, ant, IDE? Has the problem resolved itself?
DrLaszloJamfa at 2007-7-12 0:14:10 > top of Java-index,Java Essentials,New To Java...
# 4
I am compiling on cli with "javac file.java" and runnning "java file"The problem has not been resolved. I need to delete all class files before my compile takes effect.chuck
chucklargea at 2007-7-12 0:14:10 > top of Java-index,Java Essentials,New To Java...
# 5
It wouldn't be a permissions issue that your copy of javac can't overrite the class files that are already there for some reason, would it?
guitar_man_Fa at 2007-7-12 0:14:10 > top of Java-index,Java Essentials,New To Java...