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
-
Anonymous
2023-02-21T04:14:22+00:00 Please shift + right-click javaw.exe in File Explorer.
Click Start/Run.
Paste the path from the clipboard (including the enclosed double quotes).
Click OK.
Does it work?
Also, can you run C:\Program Files\Java\jdk-17\bin\javaw.exe in Command Prompt?
When I Shift+RClick > Copy as path, then paste it into the command prompt to run, it says it cannot find the file. However, when I drag the file from the explorer window into the command prompt and run it like that, it works. Extremely weird.
I will install Adoptium instead of the Oracle JDK, restart, and see if it fixes itself.
Update: I've done just that. Now the executable won't start no matter how I execute it.
Just to make sure, I tried executing jconsole.exe from the command line. Works fine.
-
Ramesh Srinivasan 173.4K Reputation points Volunteer Moderator2023-02-21T04:21:49+00:00 Running javaw.exe without any switches returns quickly to the prompt on my computer.
Looks like the process hangs on your computer. Javaw.exe seems to have been locked by a program or service.
Please try Option 2 in this article (Process Explorer) to find the offending process that has locked Javaw.exe. Run ProcExp as administrator.
-
Anonymous
2023-02-21T04:27:39+00:00 Running javaw.exe without any switches returns quickly to the prompt on my computer.
Looks like the process hangs on your computer. Javaw.exe seems to have been locked by a program or service.
Please try Option 2 in this article (Process Explorer) to find the offending process that has locked Javaw.exe. Run ProcExp as administrator
Started ProcExp as Admin, searched for javaw/javaw.exe, no matches.
Did the same thing on ProcessHacker2, same result.