Eclipse won't compile, bad class file, wrong version

后端 未结 9 1142
面向向阳花
面向向阳花 2021-01-18 01:46

I am trying to compile code checked out of SVN from another developer. Eclipse has been giving me a lot of trouble lately.

Here are my project-specific settings:

相关标签:
9条回答
  • 2021-01-18 02:19

    Maybe you need to use JDK JRE which is located at C:\Program Files\Java\jdk\jre, not public

    0 讨论(0)
  • 2021-01-18 02:23

    You can try to copy tools.jar from jdk/jre to common/lib of tomcat.

    It worked for me as demonstrated here

    0 讨论(0)
  • 2021-01-18 02:25

    Changing the tools.jar in eclipse to the correct version fixed it. I was using jre 1.6 and had to change it to use 1.8 to get the class file in version 52.

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