I bought minecraft from the store and downloaded Minecraft.exe ; and the provided from Minecraft.net-- However, when I ran it, It did not work, stating there was and error I needed to fix, Provided I download Java, my friend told me to update Java, I did and still, nothing has been working.
I will provide a screenshot of my issue to help you help me,
Linked issues
Attachments
Comments

Your Windows username contains an exclamation point ⚠️ , which prevents java from properly executing. You will either need to change your user account name on your computer, or create a new one.
For technical support please use the Mojang Support Center.