Java JDK Not Recognized After Installation: Fixes and Checks - Fix Windows Security Connection Refused Service Not Running-Fix 502 Bad Gateway with Command Line Tools

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.