What am I supposed to do I can't play on Pixelmon mod because of a Java installment thing?

Everytime I try to play Pixelmon on Minecraft when I try to play it shows select a java install and when I browse it, it shows I have none java installed on my laptop which I have more then one on it because I can find a single one and when I push continue or cancel it shows up "the chose Java path is not valid! Please reainstall Java and try again. And how do I fix it or what do I do.
Where is the Java one I need and the pixelmon mod I need can you guys please help cause I'm stuck on it and want to play, please send the link to the Java I need and I think I got all of the Pixelmod one done already incase give me the link to that to.
Oh and is there a way I can just play by myself and Lan open with some my friends to please tell me that to please I'm trying to play with family and friends on pixelmon and it shows that java thing everytime we try to play but it still shows it.

Goto Java.com and download their previous versions uninstaller.

Uninstall all versions and reboot the computer.

Then goto Java.com and download their latest Java and install that.

Your LAN issues will be fixed too.