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?

10 Replies
⌛
This post has been reserved for your question.
Hey @Xeresbos! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose 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.
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
if you had lombok in the project and changed the jdk version then yea
you need to change lombok version too
Thanks, asked GPT to give proper version for 21 and it fixed, with modifying plugin in pom.xml too
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.
where exactly do you get the error btw
oh
ok
Just curios about why this is a problem tho? This wasn't happening in the past
idk afaik lombok breaks every time you change jdk version
lmao
u need a different version for each jdk
JwtSecretKeyGenerator class, it's a simple class with a main method in itself
lol
Thanks
Post Closed
This post has been closed by <@268817821989863425>.