java.lang.RuntimeException: Uncompilable source code - what can cause this?

MalcomTucker picture MalcomTucker · Feb 25, 2010 · Viewed 141.2k times · Source

This error is just bizarre, my code compiles fine, I can see there are no problems with it, yet this error has just popped up. I have tried re-starting NetBeans and there is no additional exception information.

What can cause this?

Answer

Dime picture Dime · Feb 8, 2011

If it is Netbeans, try to uncheck "Compile on save" setting in the project properties (Build -> Compiling). This is the only thing which helped me in a similar situation.