AMD Crash Defender Service is blocking javaw.exe. Download and run java_fix.reg. That should do the trick!
Windows cannot find 'C:\Program Files\Java\jdk-17\bin\javaw.exe'. Make sure you typed the name correctly, and then try again.
I'm trying to get either Adoptium JDK or the official Oracle JDKs to work on Windows 11 22H2. Whenever I try to install it and use it, literally the only file that doesn't work is javaw.exe. Problem pictured below. Clearly the file exists; it even comes up when I do dir <installation path> in Command Prompt. The Oracle JDK in particular is installed when these screenshots were taken.
Windows for home | Windows 11 | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
21 additional answers
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Ramesh Srinivasan 173.4K Reputation points Volunteer Moderator2023-02-21T04:59:35+00:00 Javaw.exe seems to be inaccessible by the script. Please terminate Procmon.exe and Procmon64.exe via Task Manager. Then run a manual trace. Begin the trace, try to run javaw.exe the full path via CMD Prompt and let it hang. After 10 seconds, switch to procmon and stop the trace. Save All events, zip and upload the PML log.
-
Anonymous
2023-02-21T05:06:49+00:00 Please try this:
- Download Procmon.exe and save it to a folder -- e.g., c:\tools
- Download trace.vbs and save it to the same folder as Procmon.exe (c:\tools)
- Right-click Procmon.exe, click Properties, click Unblock, and click OK.
- Right-click trace.vbs, click Properties, click Unblock, and click OK.
- Double-click trace.vbs to run it.
- Wait for the script to finish running. After it finishes, it opens the C:\ drive with capture.pml file selected.
- Zip the file capture.pml and upload it to OneDrive for analysis.
Meanwhile, please try excluding javaw.exe in your AV program and see if javaw.exe still hangs when launched.
The site is being fussy and won't let me upload any files, images included, but I can tell you that there were multiple path not found entries in the capture file for the javaw.exe path, and the javapath/bin path.