Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Java Project Error

Tags:

java

eclipse

I created a new project in Eclipse called Lottery. The first thing that happened was I recieved a weird icon on my project that I never seen before. enter image description here

I decided it was nothing and created a new class, called RandomNumberGenerator. Then it gave me the following error:

Implicit super constructor Object() is undefined for default constructor. 
Must define an explicit constructor

I have no idea what the problem is. Could somebody help? I can't create another class without an error!

Thanks in advance!

like image 959
Griffin Avatar asked Jun 27 '26 10:06

Griffin


2 Answers

this will help you

  1. in project property dialog , check that JRE System Liabrary is set properly or not in Java Build Path.

  2. in same dialog check builders option , if you are using javascript code than this may be happed.

like image 179
Yogesh Prajapati Avatar answered Jun 30 '26 06:06

Yogesh Prajapati


Do this:

Windows -> Show View -> Problems

You will have a detail of your project's errors. I would bet that is a classpath / buildpath / JRE configuration error.

like image 43
Pablo Santa Cruz Avatar answered Jun 30 '26 06:06

Pablo Santa Cruz