java.lang.UnsupportedClassVersionError: Bad version number in .class file?

后端 未结 10 671
逝去的感伤
逝去的感伤 2020-11-22 12:56

I am getting this error when I include an opensource library that I had to compile from source. Now, all the suggestions on the web indicate that the code was compiled in o

10条回答
  •  一生所求
    2020-11-22 13:26

    Did you compile with Eclipse? It uses a different compiler (not javac). That should not result in this error (if everything is configured properly), but you can try to compile it with javac instead.

    If that fixed the problem, try to see if Eclipse has some incorrect compiler settings. Specifically have it target Java 5.

提交回复
热议问题