r/javahelp • u/Conscious-Feature520 • Aug 10 '25
problem in Spring web-mvc Maven project
I'm having problem while creating a spring web-mvc project in Maven.
in project facets when i'm choosing the runtime as tomcat 10 it's not allowing me to choose jdk 23. what shoud i do?
2
Upvotes
View all comments
Show parent comment
3
u/djnattyp Aug 10 '25
"Project Facets" and "Dynamic Web Module" points to this being an error Eclipse generates trying to build the project. Try building the maven project from the command line to see if there are specific errors with the actual code / maven dependencies of the project, or whether this is just an issue with Eclipse setup.
Have you installed JDK 23 as an "installed JRE" in Eclipse? What version of Eclipse you're using matters as well... you may want to update Eclipse.
Eclipse versions usually can work with JDKs released after whatever the latest version supported by your version of Eclipse (due to good JDK backward compatability), but you'll get lots of weird issues with Eclipse UI choosers or validators not knowing what to do with a newer JDK versions.
https://stackoverflow.com/questions/4076601/how-do-i-import-the-javax-servlet-jakarta-servlet-api-in-my-eclipse-project