Turn off debugging

My next baby step is hitting a road block. I followed the NSB video tutorial on how to generate a key.
All went well to this point . . .

Microsoft Windows [Version 10.0.18362.778]
© 2019 Microsoft Corporation. All rights reserved.

C:\Users\David> cd C:\Program Files (x86)\Java\jre1.8.0_251

C:\Program Files (x86)\Java\jre1.8.0_251>keytool -genkey -v -keystore PedCalc.keystore -alias PedCalc -keyalg RSA -keysize 2048 -validity 10000
‘keytool’ is not recognized as an internal or external command,
operable program or batch file.

There seems to be some disagreement on fixes I am finding. They have to do with the way JAVA_HOME is set up in Environmental Settings. Some say it needs to be ‘…\bin’
Some say both jre and jdk need to be there.
What is the definitive solution?