1

I have a problem with my Intellij project.

Screenshot

I've already updated my Java JDK and JRE. Someone have another solution?

Thanks.

6

2 Answers 2

2

If you have already imported this project as maven. Do mvn idea:idea

Else add framework support > maven and then do mvn clean/mvn idea:idea

2
  • It's not imported as maven. Commented Aug 1, 2018 at 9:38
  • If its not maven, is it some other build framework like gradle? Commented Aug 1, 2018 at 9:41
1

If you do not use Mven or Gradle for dependency management, add the dependency on the javax.servlet-api.jar to the module's dependencies manually.

If you use application server (e.g. Tomcat) you should to define it in IDE and IDE will create java-ee library that you can then add to the module's dependencies:

enter image description here

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.