0

Creating "hello world" Servlet application in Eclipse 2020-09 JEE that runs in Ubuntu machine according to manual . Java version 15.

Looks like project can't find javax library. Why? How to fix that?

enter image description here

vico
  • 17,051
  • 45
  • 159
  • 315
  • Those should be coming from your server (it needs them as well). Your project should be targeting a Tomcat 9 server if you followed those directions. Is it not? – nitind Sep 29 '20 at 15:40
  • I have problems by setting Tomcat server: https://stackoverflow.com/questions/64123098/tomcat-installation-and-configuration-for-eclipse-dynamic-web-project – vico Sep 29 '20 at 15:55

1 Answers1

0

enter image description here

You can resolve this by not importing "Javax" ,instead, you have to import "Jakarta" as tomcat having

import jakarta.srevelet.
jakarta.servelet
Procrastinator
  • 2,526
  • 30
  • 27
  • 36