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

后端 未结 9 1158
面向向阳花
面向向阳花 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:11

    You seem to be running Ant with a version 1.5 java compiler but compiling against the class libraries (rt.jar) of a 1.6 installation. You should set up your build.xml so that it will consistently use both (the compiler and the class libraries) of the the same java version.

提交回复
热议问题