Windows cannot find 'C:\Program Files\Java\jdk-17\bin\javaw.exe'. Make sure you typed the name correctly, and then try again.

Anonymous
2023-02-21T02:56:13+00:00

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.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Ramesh Srinivasan 173.4K Reputation points Volunteer Moderator
    2023-02-21T05:34:46+00:00

    AMD Crash Defender Service is blocking javaw.exe. Download and run java_fix.reg. That should do the trick!

    4 people found this answer helpful.
    0 comments No comments

21 additional answers

Sort by: Most helpful
  1. Ramesh Srinivasan 173.4K Reputation points Volunteer Moderator
    2023-02-21T03:59:44+00:00

    Strange. Can you run "dir /w" and post a screenshot?

    Also, what happens when you type the full path to javaw.exe in a Command Prompt window?

    0 comments No comments
  2. Anonymous
    2023-02-21T04:03:35+00:00

    Strange. Can you run "dir /w" and post a screenshot?

    Also, what happens when you type the full path to javaw.exe in a Command Prompt window?

    For sure.

    0 comments No comments
  3. Anonymous
    2023-02-21T04:07:42+00:00

    As for the full path thing:

    It just hangs and does nothing, I'm assuming because it has no arguments or anything passed to it. Assumingly this means it's working.

    0 comments No comments
  4. Ramesh Srinivasan 173.4K Reputation points Volunteer Moderator
    2023-02-21T04:11:09+00:00

    Please right-click javaw.exe in File Explorer and click Copy Path.

    Right-click Start and click 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?

    0 comments No comments