jre没有配置正确,解决方法如下:
This problem occurs if your built path is not configured properly in eclipse
.
In eclipse
to remove this error right click on your project -> Build Path -> Configure Build Path -> Libraries tag -> Add Library -> JRE System Library -> Select Alternate JRE -> select jre that is installed in your system -> Finish
The error was because you did not include default System libraries for your java projects and your class was not able to find Object()
constructor which is call first before memory creation of your class