Java error: Implicit super constructor is undefined for default constructor

前端 未结 10 999
借酒劲吻你
借酒劲吻你 2020-11-22 10:28

I have a some simple Java code that looks similar to this in its structure:

abstract public class BaseClass {
    String someString;
    public BaseClass(Str         


        
10条回答
  •  心在旅途
    2020-11-22 11:02

    You could also get this error when JRE is not set. If so, try adding JRE System Library to your project.

    Under Eclipse IDE:

    1. open menu Project --> Properties, or right-click on your project in Package Explorer and choose Properties (Alt+Enter on Windows, Command+I on Mac)
    2. click on Java Build Path then Libraries tab
    3. choose Modulepath or Classpath and press Add Library... button
    4. select JRE System Library then click Next
    5. keep Workspace default JRE selected (you can also take another option) and click Finish
    6. finally press Apply and Close.

提交回复
热议问题