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