EvoSuite java support for Java 7?

583 Views Asked by At

Which versions of Java are supported by EvoSuite?

I am running a maven build, following the instructions on the EvoSuite maven plugin page.

However, the build fails with the following message:

    Failed to execute goal org.evosuite.plugins:evosuite-maven-
plugin:0.1.1:generate (default-cli) on project simple: Execution default-cli of
 goal org.evosuite.plugins:evosuite-maven-plugin:0.1.1:generate failed: Unable 
to load the mojo 'generate' in the plugin 'org.evosuite.plugins:evosuite-maven-
plugin:0.1.1' due to an API incompatibility: 
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
org/evosuite/maven/GenerateMojo : Unsupported major.minor version 51.0
2

There are 2 best solutions below

1
On

EvoSuite does support Java 7. The error message that you get seems like the Maven process you used is not using Java 7. You need to be sure that "mvn" is using the right Java version. Use mvn -version to check which one you are using.

See related post: java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 (unable to load class frontend.listener.StartupListener)

2
On

NO,at least JAVA8.You can go to the website of Evosuite to learn more.