Since the purchase is already on the account, the launcher showing Buy for Java usually means it is not detecting the license correctly.
Try this in order:
- Sign out of the Minecraft Launcher.
- Sign out of the Microsoft Store.
- Restart the PC.
- Sign back in to the Microsoft Store first, then open the Minecraft Launcher and sign in with the same Microsoft account used for the purchase.
- In Microsoft Store, search for Minecraft and confirm it shows Owned or Install.
- In Windows, go to Settings > Time & Language > Date and time.
- Turn on Set time automatically.
- Turn on Set time zone automatically.
- Select Sync now.
- Try the launcher again.
If Bedrock shows Install but Java still shows Buy after those steps, this is likely a license sync issue in the launcher and needs to be checked by Minecraft Support.
References:
- Minecraft Pc Problem. - Microsoft Q&A I have redeemed a gift code for minecraft standart edition but in the minecraft launcher it still says to buy it. i have tried reinstalling, logging out and logging back in. it shows up on
- My Minecraft Launcher won't work with Java Edition, what do I do? - Microsoft Q&A My Minecraft Launcher keeps saying "Unable to verify what products you own. Please check your internet connection." I've been fully connected to the internet, tried reinstalling the launcher, tried signing in to the launcher again, as well as signing in to the Xbox app and Microsoft Store again and nothing is working. And occasionally Minecraft Launcher WILL load Java Edition, but will say I need to enter a Java username, which doesn't make sense because I had done so years ago. Is there anything else that can be done to fix this?