Thomas Wouters
Thomas Wouters

Reputation: 77

Intellij Java cannot find symbol

I have a problem with my Intellij project.

Screenshot

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

Thanks.

Upvotes: 1

Views: 7435

Answers (2)

Andrey
Andrey

Reputation: 16431

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

Upvotes: 1

Tamanna Bhasin
Tamanna Bhasin

Reputation: 21

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

Upvotes: 2

Related Questions