This is my error log
Error while generating node info file D:\CordaV4\cordapp-template-java-release-V4\cordapp-template-java-release-V4\build\nodes\PartyB\logs CAPSULE EXCEPTION: Could not find Java installation for requested version [Min. Java version: 1.8.0 JavaVersion: null Min. updateTask :deployNodes Bootstrapping local test network in D:\CordaV4\cordapp-template-java-release-V4\cordapp-template-java-release-V4\build\nodes Generating node directory for Notary Generating node directory for PartyA Generating node directory for PartyB Waiting for all nodes to generate their node-info files...
version: {1.8=171}] (JDK required: false). You can override the used Java version with the -Dcapsule.java.home flag. (for stack trace, run with -Dcapsule.log=verbose)
Error while generating node info file D:\CordaV4\cordapp-template-java-release-V4\cordapp-template-java-release-V4\build\nodes\Notary\logs CAPSULE EXCEPTION: Could not find Java installation for requested version [Min. Java version: 1.8.0 JavaVersion: null Min. updateversion: {1.8=171}] (JDK required: false). You can override the used Java version with the -Dcapsule.java.home flag. (for stack trace, run with -Dcapsule.log=verbose)
Error while generating node info file D:\CordaV4\cordapp-template-java-release-V4\cordapp-template-java-release-V4\build\nodes\PartyA\logs CAPSULE EXCEPTION: Could not find Java installation for requested version [Min. Java version: 1.8.0 JavaVersion: null Min. updateversion: {1.8=171}] (JDK required: false). You can override the used Java version with the -Dcapsule.java.home flag. (for stack trace, run with -Dcapsule.log=verbose)
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':deployNodes'.
Error while generating node info file. Please check the logs in D:\CordaV4\cordapp-template-java-release-V4\cordapp-template-java-release-V4\build\nodes\PartyB\logs.
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 27s 12 actionable tasks: 10 executed, 2 up-to-date
I tried putting the java path in the gradle file as well as the gradle properties file but still no result.