I am getting a NoSuchFieldError in my code, now oracle isn\'t very clear about why this error is thrown only saying: this error can only occur at run time if the definit
It was quite tricky for me, so I am writing my solution.
I was working in IntelliJ with Boot everything was fine, all Java 8 versions were set up appropriately.
After some hours I somehow checked on terminal the javac -version and guess what, it was set to version 9. So make sure to look for javac, I know its counterintuitive but supposedly, since I had set the jdk on bash profile, on IntelliJ etc, I shouldn't have to bother of it.
Hope it helps!