java: cannot find symbol

Greetings, I was doing an approach that I normally do when developing a project and I am encountering an error that I don't know the exact reason for. I did some research and changing the Java version from 21 to 17 didn't work and this was one of the most standard approaches I've seen in general. Is there a change related to Lombok or IntelliJ that I don't know about?
No description
10 Replies
JavaBot
JavaBot3mo ago
This post has been reserved for your question.
Hey @Xeresbos! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Xeresbos
XeresbosOP3mo ago
There is no visible error in any class in the project. In fact, I get this error when I try to start the main in a small JwtSecretKeyGenerator class that I wrote in the project. For some reason, the compiler tries to compile the entire project
No description
ayylmao123xdd
ayylmao123xdd3mo ago
if you had lombok in the project and changed the jdk version then yea you need to change lombok version too
Xeresbos
XeresbosOP3mo ago
Thanks, asked GPT to give proper version for 21 and it fixed, with modifying plugin in pom.xml too
JavaBot
JavaBot3mo ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
ayylmao123xdd
ayylmao123xdd3mo ago
where exactly do you get the error btw oh ok
Xeresbos
XeresbosOP3mo ago
Just curios about why this is a problem tho? This wasn't happening in the past
ayylmao123xdd
ayylmao123xdd3mo ago
idk afaik lombok breaks every time you change jdk version lmao u need a different version for each jdk
Xeresbos
XeresbosOP3mo ago
JwtSecretKeyGenerator class, it's a simple class with a main method in itself lol Thanks
JavaBot
JavaBot3mo ago
Post Closed
This post has been closed by <@268817821989863425>.

Did you find this page helpful?