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

后端 未结 15 2172
梦谈多话
梦谈多话 2020-11-22 16:30

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

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 17:26

    Recheck the package declarations in all your classes!

    This behaviour has been observed in NetBeans, when the package declaration in one of the classes of the package refers to a non-existent or wrong package. NetBeans normally detects and highlights this error but has been known to fail and misleadingly report the package as free of errors when this is not the case.

提交回复
热议问题