hello I just created a project in spring boot initializer but when I import the project in sts I have a set of errors that I do not understand
package com.example.filter.influenceur.influenceur; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class InfluenceurApplication { public static void main(String[] args) { SpringApplication.run(InfluenceurApplication.class, args); } }
the errors are :
The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
String cannot be resolved to a type
All this error is in my Application.jave please help me
Advertisement
Answer
These error occurs when JRE is not set for the project. Have a look at this link to set JRE.