Can't install Minecraft Forge .JAR file in Windows 8

I am trying to install the new Forge for v1.15 on my GF's Windows 8 PC. The file I am getting marked installer is a .JAR file. Now when I run this same file on my Windows 7 PC, it opens and runs just fine, but when I try on her machine it asks what to open it with, and I don't know where to go for that. Just so you know, Minecraft works just fine as is, but we can't play modded together otherwise.
Best Answer
Answer posted by OP in comments
ahh hah, ok so a little more digging and i found out that for some odd reason, even though the game runs just fine, but she didnt have java installed, or at least didnt have the full program. i have since gone to the java website and installed the most up to date java program, and the tried the .jar file once again and it ran perfectly. so i guess first thing to do would be check your java version. i hope this helps anyone in a similar place
Pictures about "Can't install Minecraft Forge .JAR file in Windows 8"



How do I install Minecraft Forge on Windows 8?
The Windows installer for Forge is at http://files.minecraftforge.net/ (if a direct download link is more useful, here). Once you have the .exe file downloaded, run it, and follow all the directions. It will automatically install Forge for 1.8, and add a mods folder to your . minecraft directory.How do I install a forge jar file?
Follow the steps below:Can - Mother Sky (1970) [HQ]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, Ketut Subiyanto, Andrea Piacquadio, Ksenia Chernaya