I'm running job in Jenkins, while running I'm getting below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run
(deploy-artifact) on project SoapOCPTestingPOC: An Ant BuildException has occured:
The following error occurred while executing this line:
[ERROR] C:\Arun\SoapAutomation\et-ocp-automation\build.xml:37: Unable to find a javac compiler;
[ERROR] com.sun.tools.javac.Main is not on the classpath.
[ERROR] Perhaps JAVA_HOME does not point to the JDK.
[ERROR] It is currently set to "C:\Program Files\Java\jdk1.8.0_181\jre"
[ERROR] around Ant part ...<ant antfile="C:\Arun\SoapAutomation\et-ocp-automation\build.xml">
... @ 4:69 in C:\Arun\SoapAutomation\et-ocp-automation\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
I have Java home : C:\Program Files\Java\jdk1.8.0_181
I have tried some possible ways. but I'm not able to figure it out.