For the Java edition of Minecraft, check the location where you downloaded the game. If you're unable to find the location, use the AppData folder on Windows. To find the EXE file in macOS, open a Finder window and type ~/Library/Application Support/minecraft.