NoSuchFieldError Java

后端 未结 7 952
盖世英雄少女心
盖世英雄少女心 2020-11-29 03:44

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

相关标签:
7条回答
  • 2020-11-29 04:41

    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!

    0 讨论(0)
提交回复
热议问题