Error message with tools .jar

I am running a command ./gradlew assemble and comming out with this error message looking for the tools.jar which is in the supposed directory

[root@Daley-DB-second logstash-input-java_input_example]# ./gradlew assemble
> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64/jre contains a valid JDK installation.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 11s
1 actionable task: 1 executed
[root@Daley-DB-second logstash-input-java_input_example]# cd /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64/jre
[root@Daley-DB-second jre]# pwd
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64/jre
[root@Daley-DB-second jre]# ls -al
total 19904
drwxr-xr-x. 4 root root      112 Nov 14 17:24 .
drwxr-xr-x. 3 root root       34 Nov 14 17:21 ..
-rw-r--r--. 1 root root     1522 Oct 10 23:18 ASSEMBLY_EXCEPTION
drwxr-xr-x. 2 root root      188 Nov 14 17:21 bin
drwxr-xr-x. 9 root root     4096 Nov 14 17:21 lib
-rw-r--r--. 1 root root    19274 Oct 10 23:18 LICENSE
-rw-r--r--. 1 root root   158757 Oct 10 23:18 THIRD_PARTY_README
-rwxr-xr-x. 1 root root 20189257 Nov 14 17:24 tools.jar

The tools.jar there is not the expected place.
It searches for the tools.jar where it should be and tells you that in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64/jre there is no JDK.
This is most probably correct, mind the /jre in the end.
Just putting the tools.jar at a certain places does not necessarily make a JRE suddenly be a JDK.
Use a JDK instead, most probably /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64 is the JDK that comes with a JRE in the jre subfolder.

Thanks for your swift reply what should i do to remove this error message

As the error message and I said, use a JDK, not a JRE.

Hello,

Does this mean remove jre and install the equivalent jdk from oracle website
Thanks

I don’t know what you have where and how and what installed.
As I said, typically when you have a JRE in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64/jre then the JDK is in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.x86_64.
But whether that is true for you I can hardly guess.