Skip to content

Build Failed. Getting class file has wrong version error. #24

@samshaikh87

Description

@samshaikh87

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project readyapi-postman-plugin: Compilation failure
[ERROR] ../src/main/java/com/smartbear/postman/script/AddEqualsAssertionCommand.java:[19,42] cannot access com.eviware.soapui.model.testsuite.Assertable
[ERROR] bad class file: ...m2\repository\com\smartbear\ready-api-soapui\3.3.2\ready-api-soapui-3.3.2.jar(com/eviware/soapui/model/testsuite/Assertable.class)
[ERROR] class file has wrong version 55.0, should be 52.0
[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.

Both java and javac version are same...

javac -version
javac 1.8.0_261

java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

Please check your java file is compiling correctly and also revert the java version to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions