Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

As with every java bug in existence, someone has run into it while playing Minecraft:

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/minecraft-crashes-with-java-failure-when-start/573f1b62-bbae-45e3-96f9-f90e204ee98c

It seems like the most likely issue is with User Account Control (UAC). The other possibility is that you're getting this while trying to run the game in full screen mode and there's an issue with the graphics card driver.

It was a driver issue. After I updated them it fixed the problem. Thanks for your help.