Issue
I have installed development environment Intellij ideea
and java 11
. I read that java 11
do not support javax.servlet package
, because it is a part of Java EE
and can not create a servlet
. But what do I need to do to create a servlet? To install java 8 EE? or if there is a video how to fix it, because I've read a lot of articles but I don't understand how to fix it.
Solution
You can totally do it with Java 11, the only depedency you need is:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
</dependency>
Here you can find a working demo example https://github.com/asgarov1/servlet_app
Answered By - J Asgarov
Answer Checked By - Timothy Miller (JavaFixing Admin)