#Jakarta no longer recognized in my Eclipse EE

1 messages · Page 1 of 1 (latest)

wheat hull
#

Okay so I'm working on my final project for my current course where I need to make a website that functions on a server using JSP and whatnot. I've coded some webpages but I struggled getting my Apache Tomcat server setup for a bit, nomatter what I did it wouldn't work. I finally reset my configurations in project facets to default and it allowed me to run the project on a server finally, but now I'm getting a different error I BELIEVE is caused by this. Before resetting to default configuration all the classes imported from jakarta were recognized. Now I don't know how to fix it. Nothing I do seems to work. I'm still new to this and struggling, but if I just got this sorted out I would be able to finish this assignment with relative ease I think. Could anyone help me?

analog ermineBOT
#

<@&987246527741304832> please have a look, thanks.

wheat hull
#

Additional picture showing my project facets rn too

exotic berry
#

import Jakarta servlet

#

add the dependencies

wheat hull
#

But they already worked, wouldn't that mean the Jakarta servelets are there already??

exotic berry
#

did you move files around at all?

#

it might have not even shown those errors until now

wheat hull
#

Not really? Basically, I got the server running, but I couldn't get the option to run this program on a server. I reverted my project facets to default because I saw that suggested on stack overflow, and that DID make it so I had the option of running on server, but it made this error pop up

#

So I don't know

exotic berry
#

now add Jakarta servlet dependency

#

you have maven or gradle?

wheat hull
#

Maven

exotic berry
#

try running mvn clean install

wheat hull
#

I redid the server dependency and now I'm getting this error

#

Java ver 22 not supported

#

So I guess I need to figure which version of java this server supports

exotic berry
#

use the latest LTS

#

21 I believe

wheat hull
#

I got it to run with Java 11 but this was what came up.

wheat hull
wheat hull
#

I did get it to run properly. Eventually. I just had to use an earlier version of Java

exotic berry
#

try 21?

#

did it not work with 21

#

show your pom.xml