Java exception has occurred can someone

I'm trying to play Minecraft on the PC version but whenever I hit "play" it says a "Java exception has occurred" anyone know how to fix this?

One thing you might try is removing Java ("settings -> apps") and then re-installing the current version from the Oracle website.

Make sure that the version of Minecraft that you are running is compatible with the version of Java that you are running. See Minecraft's system requirements.