My Eclipse version is 3.5(jee-galileo).
if it's possible to set someting.
then the .class file will not build when there are some error or Exceptions.?
Because sometimes i will confuse if the class is fine or not.
Class files are not generated for classes having compiling errors. If you have an old class file, it won't be deleted though. But I don't see where the problem is. If you can't compile, it's not even worth looking at the class file. Do you have a more specific problem ?
the problem maybe due to Eclipse....
such as my code: it has an exception, test is not reasonable.
when I save the file,(My project set Build Automatically).and the *.class file will be builded.
I hope not to build this class,it will confuse me.and the class should be empty.
Interesting; I didn't know it did that, although I guess when I think about it I *have* seen it, and it makes sense.
I also can't think of a reason why it *shouldn't* do that, or why you're looking for the presence of a particular class file a evidence of project compilation success--wouldn't it make more sense to look in the IDE, the mechanism by which you're building it?