javac doesn't produce class files anymore and gives no error messages
Hi,
the java compiler javac of jdk1.6.0 suddenly stopped producing class files for all my .java files. I had compiled my main .java file, received 10 errors and fixed one of them. Then I compiled again and javac didn't give any error messages anymore and didn't produce class files for every .java file part of the "project". When launching the java file I get an exception NoClassDefFoundError. There are still errors I didn't fix in the .javas as I can see from the output when javac found 10 errors. So there are errors but javac doesn't spit them out and silently produces no class file for every .java. It produces one for the main .java though. This occured suddenly.
What can be the cause and how to fix it? Thanks for any help!
Lars
[769 byte] By [
L.a.r.sa] at [2007-11-27 0:20:58]

# 1
I found a part solution: deleting all class files before calling javac makes javac go through all .java, report any errors and produce a class file for every .java. I have to do it before every javac though because in successive attempts the same behaviour as described above occurs: javac doesn't go through all .javas. On a side note: I get an error for "variable might not have been initialized" and no class file is produced. The variable is initialized though and this kind of thing should be a warning, not hinder class file creation.
thanks, Lars
# 3
Hi,
thanks for your answer; it works on a different system with the same jdk and same OS as normal with my .javas. I can test my other system in 1 week again. I will do so, try to create a test case and report back. Note that the behaviour occured suddenly, from one compile to the next, javac stopped reporting errors and create class files.
# 4
Hi, it took some time longer to get back to my original system. The problem still occurs. However the project has grown too big to produce a small test case at the moment. I use a batch file to delete all class files before I recompile so I don't run into the problem anymore. Thanks nevertheless, Lars