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

后端 未结 9 1219
面向向阳花
面向向阳花 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条回答
  •  萌比男神i
    2021-01-18 02:17

    bad class file: C:\Program Files\Java\jre1.6.0_07\lib\rt.jar(java/io/IOException.class)
    class file has wrong version 49.0, should be 48.0

    It is telling that the mentioned class file is been compiled using a compiler which generates class files of version 49.0, while ant expects it to be compiled using a compiler which generates class files of version 48.0. Since the class in question is part of the JRE, you need to update the classpath in your build.xml to include the JRE containing class files of version 48.0.

提交回复
热议问题